[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202408311559.fzAoy2aD-lkp@intel.com>
Date: Sat, 31 Aug 2024 15:04:13 +0800
From: kernel test robot <lkp@...el.com>
To: "Paul E. McKenney" <paulmck@...nel.org>
Cc: oe-kbuild-all@...ts.linux.dev, linux-kernel@...r.kernel.org
Subject: [paulmck-rcu:dev.2024.08.30a 28/33] include/linux/srcu.h:274:37:
error: 'SRCU_READ_FLAVOR_LITE' undeclared
tree: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git dev.2024.08.30a
head: 05416eb79213ad6a9770faa795059fdd00adb6e0
commit: 23265e8fd7b05be03428c2e7632440d8573e5e7e [28/33] srcu: Add srcu_read_lock_lite() and srcu_read_unlock_lite()
config: m68k-randconfig-r072-20240831 (https://download.01.org/0day-ci/archive/20240831/202408311559.fzAoy2aD-lkp@intel.com/config)
compiler: m68k-linux-gcc (GCC) 14.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240831/202408311559.fzAoy2aD-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202408311559.fzAoy2aD-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from include/linux/notifier.h:16,
from include/linux/memory_hotplug.h:7,
from include/linux/mmzone.h:1432,
from include/linux/topology.h:33,
from include/linux/irq.h:19,
from include/asm-generic/hardirq.h:17,
from ./arch/m68k/include/generated/asm/hardirq.h:1,
from include/linux/hardirq.h:11,
from include/linux/interrupt.h:11,
from include/linux/kernel_stat.h:8,
from arch/m68k/kernel/asm-offsets.c:16:
include/linux/srcu.h: In function 'srcu_read_lock':
include/linux/srcu.h:248:37: error: 'SRCU_READ_FLAVOR_NORMAL' undeclared (first use in this function)
248 | srcu_check_read_flavor(ssp, SRCU_READ_FLAVOR_NORMAL);
| ^~~~~~~~~~~~~~~~~~~~~~~
include/linux/srcu.h:248:37: note: each undeclared identifier is reported only once for each function it appears in
include/linux/srcu.h: In function 'srcu_read_lock_lite':
>> include/linux/srcu.h:274:37: error: 'SRCU_READ_FLAVOR_LITE' undeclared (first use in this function)
274 | srcu_check_read_flavor(ssp, SRCU_READ_FLAVOR_LITE);
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/srcu.h: In function 'srcu_read_lock_nmisafe':
include/linux/srcu.h:295:37: error: 'SRCU_READ_FLAVOR_NMI' undeclared (first use in this function)
295 | srcu_check_read_flavor(ssp, SRCU_READ_FLAVOR_NMI);
| ^~~~~~~~~~~~~~~~~~~~
include/linux/srcu.h: In function 'srcu_read_lock_notrace':
include/linux/srcu.h:307:37: error: 'SRCU_READ_FLAVOR_NORMAL' undeclared (first use in this function)
307 | srcu_check_read_flavor(ssp, SRCU_READ_FLAVOR_NORMAL);
| ^~~~~~~~~~~~~~~~~~~~~~~
include/linux/srcu.h: In function 'srcu_down_read':
include/linux/srcu.h:336:37: error: 'SRCU_READ_FLAVOR_NORMAL' undeclared (first use in this function)
336 | srcu_check_read_flavor(ssp, SRCU_READ_FLAVOR_NORMAL);
| ^~~~~~~~~~~~~~~~~~~~~~~
include/linux/srcu.h: In function 'srcu_read_unlock':
include/linux/srcu.h:351:37: error: 'SRCU_READ_FLAVOR_NORMAL' undeclared (first use in this function)
351 | srcu_check_read_flavor(ssp, SRCU_READ_FLAVOR_NORMAL);
| ^~~~~~~~~~~~~~~~~~~~~~~
include/linux/srcu.h: In function 'srcu_read_unlock_lite':
include/linux/srcu.h:367:37: error: 'SRCU_READ_FLAVOR_LITE' undeclared (first use in this function)
367 | srcu_check_read_flavor(ssp, SRCU_READ_FLAVOR_LITE);
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/srcu.h: In function 'srcu_read_unlock_nmisafe':
include/linux/srcu.h:383:37: error: 'SRCU_READ_FLAVOR_NMI' undeclared (first use in this function)
383 | srcu_check_read_flavor(ssp, SRCU_READ_FLAVOR_NMI);
| ^~~~~~~~~~~~~~~~~~~~
include/linux/srcu.h: In function 'srcu_read_unlock_notrace':
include/linux/srcu.h:392:37: error: 'SRCU_READ_FLAVOR_NORMAL' undeclared (first use in this function)
392 | srcu_check_read_flavor(ssp, SRCU_READ_FLAVOR_NORMAL);
| ^~~~~~~~~~~~~~~~~~~~~~~
include/linux/srcu.h: In function 'srcu_up_read':
include/linux/srcu.h:409:37: error: 'SRCU_READ_FLAVOR_NORMAL' undeclared (first use in this function)
409 | srcu_check_read_flavor(ssp, SRCU_READ_FLAVOR_NORMAL);
| ^~~~~~~~~~~~~~~~~~~~~~~
make[3]: *** [scripts/Makefile.build:117: arch/m68k/kernel/asm-offsets.s] Error 1
make[3]: Target 'prepare' not remade because of errors.
make[2]: *** [Makefile:1193: prepare0] Error 2
make[2]: Target 'prepare' not remade because of errors.
make[1]: *** [Makefile:224: __sub-make] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:224: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
vim +/SRCU_READ_FLAVOR_LITE +274 include/linux/srcu.h
253
254 /**
255 * srcu_read_lock_lite - register a new reader for an SRCU-protected structure.
256 * @ssp: srcu_struct in which to register the new reader.
257 *
258 * Enter an SRCU read-side critical section, but for a light-weight
259 * smp_mb()-free reader. See srcu_read_lock() for more information.
260 *
261 * If srcu_read_lock_lite() is ever used on an srcu_struct structure,
262 * then none of the other flavors may be used, whether before, during,
263 * or after. Note that grace-period auto-expediting is disabled for _lite
264 * srcu_struct structures because auto-expedited grace periods invoke
265 * synchronize_rcu_expedited(), IPIs and all.
266 *
267 * Note that srcu_read_lock_lite() can be invoked only from those contexts
268 * where RCU is watching. Otherwise, lockdep will complain.
269 */
270 static inline int srcu_read_lock_lite(struct srcu_struct *ssp) __acquires(ssp)
271 {
272 int retval;
273
> 274 srcu_check_read_flavor(ssp, SRCU_READ_FLAVOR_LITE);
275 retval = __srcu_read_lock_lite(ssp);
276 rcu_try_lock_acquire(&ssp->dep_map);
277 return retval;
278 }
279
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists