lkml.org 
[lkml]   [2021]   [Oct]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[peterz-queue:sched/cleanup 38/40] kernel/irq_work.c:44:6: warning: no previous prototype for 'irq_work_single'
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git sched/cleanup
head: c87bd97277563de19b33bf10e866066c5bafdce0
commit: 341a293f500354cbc5f3647ea1b905574c3bced0 [38/40] irq_work: Provide irq_work_queue_remote()
config: arc-randconfig-r043-20211007 (attached as .config)
compiler: arc-elf-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git/commit/?id=341a293f500354cbc5f3647ea1b905574c3bced0
git remote add peterz-queue https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git
git fetch --no-tags peterz-queue sched/cleanup
git checkout 341a293f500354cbc5f3647ea1b905574c3bced0
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=arc

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

>> kernel/irq_work.c:44:6: warning: no previous prototype for 'irq_work_single' [-Wmissing-prototypes]
44 | void irq_work_single(void *arg)
| ^~~~~~~~~~~~~~~
kernel/irq_work.c:120:13: warning: no previous prototype for 'arch_irq_work_raise' [-Wmissing-prototypes]
120 | void __weak arch_irq_work_raise(void)
| ^~~~~~~~~~~~~~~~~~~


vim +/irq_work_single +44 kernel/irq_work.c

43
> 44 void irq_work_single(void *arg)
45 {
46 struct irq_work *work = arg;
47 int flags;
48
49 /*
50 * Clear the PENDING bit, after this point the @work can be re-used.
51 * The PENDING bit acts as a lock, and we own it, so we can clear it
52 * without atomic ops.
53 */
54 flags = atomic_read(&work->node.a_flags);
55 flags &= ~IRQ_WORK_PENDING;
56 atomic_set(&work->node.a_flags, flags);
57
58 /*
59 * See irq_work_claim().
60 */
61 smp_mb();
62
63 lockdep_irq_work_enter(flags);
64 work->func(work);
65 lockdep_irq_work_exit(flags);
66
67 /*
68 * Clear the BUSY bit, if set, and return to the free state if no-one
69 * else claimed it meanwhile.
70 */
71 (void)atomic_cmpxchg(&work->node.a_flags, flags, flags & ~IRQ_WORK_BUSY);
72 }
73

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[unhandled content-type:application/gzip]
\
 
 \ /
  Last update: 2021-10-07 09:41    [W:0.204 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site