[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202408311649.7FRBYdiC-lkp@intel.com>
Date: Sat, 31 Aug 2024 16:39:02 +0800
From: kernel test robot <lkp@...el.com>
To: "Paul E. McKenney" <paulmck@...nel.org>
Cc: llvm@...ts.linux.dev, 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:30:
error: use of undeclared identifier 'SRCU_READ_FLAVOR_LITE'
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: x86_64-allnoconfig (https://download.01.org/0day-ci/archive/20240831/202408311649.7FRBYdiC-lkp@intel.com/config)
compiler: clang version 18.1.5 (https://github.com/llvm/llvm-project 617a15a9eac96088ae5e9134248d8236e34b91b1)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240831/202408311649.7FRBYdiC-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/202408311649.7FRBYdiC-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from arch/x86/kernel/asm-offsets.c:9:
In file included from include/linux/crypto.h:17:
In file included from include/linux/slab.h:16:
In file included from include/linux/gfp.h:7:
In file included from include/linux/mmzone.h:1432:
In file included from include/linux/memory_hotplug.h:7:
In file included from include/linux/notifier.h:16:
include/linux/srcu.h:248:30: error: use of undeclared identifier 'SRCU_READ_FLAVOR_NORMAL'
248 | srcu_check_read_flavor(ssp, SRCU_READ_FLAVOR_NORMAL);
| ^
>> include/linux/srcu.h:274:30: error: use of undeclared identifier 'SRCU_READ_FLAVOR_LITE'
274 | srcu_check_read_flavor(ssp, SRCU_READ_FLAVOR_LITE);
| ^
include/linux/srcu.h:295:30: error: use of undeclared identifier 'SRCU_READ_FLAVOR_NMI'
295 | srcu_check_read_flavor(ssp, SRCU_READ_FLAVOR_NMI);
| ^
include/linux/srcu.h:307:30: error: use of undeclared identifier 'SRCU_READ_FLAVOR_NORMAL'
307 | srcu_check_read_flavor(ssp, SRCU_READ_FLAVOR_NORMAL);
| ^
include/linux/srcu.h:336:30: error: use of undeclared identifier 'SRCU_READ_FLAVOR_NORMAL'
336 | srcu_check_read_flavor(ssp, SRCU_READ_FLAVOR_NORMAL);
| ^
include/linux/srcu.h:351:30: error: use of undeclared identifier 'SRCU_READ_FLAVOR_NORMAL'
351 | srcu_check_read_flavor(ssp, SRCU_READ_FLAVOR_NORMAL);
| ^
include/linux/srcu.h:367:30: error: use of undeclared identifier 'SRCU_READ_FLAVOR_LITE'
367 | srcu_check_read_flavor(ssp, SRCU_READ_FLAVOR_LITE);
| ^
include/linux/srcu.h:383:30: error: use of undeclared identifier 'SRCU_READ_FLAVOR_NMI'
383 | srcu_check_read_flavor(ssp, SRCU_READ_FLAVOR_NMI);
| ^
include/linux/srcu.h:392:30: error: use of undeclared identifier 'SRCU_READ_FLAVOR_NORMAL'
392 | srcu_check_read_flavor(ssp, SRCU_READ_FLAVOR_NORMAL);
| ^
include/linux/srcu.h:409:30: error: use of undeclared identifier 'SRCU_READ_FLAVOR_NORMAL'
409 | srcu_check_read_flavor(ssp, SRCU_READ_FLAVOR_NORMAL);
| ^
In file included from arch/x86/kernel/asm-offsets.c:14:
In file included from include/linux/suspend.h:5:
In file included from include/linux/swap.h:9:
In file included from include/linux/memcontrol.h:13:
In file included from include/linux/cgroup.h:16:
In file included from include/linux/fs.h:33:
In file included from include/linux/percpu-rwsem.h:7:
In file included from include/linux/rcuwait.h:6:
In file included from include/linux/sched/signal.h:6:
include/linux/signal.h:98:11: warning: array index 3 is past the end of the array (that has type 'unsigned long[1]') [-Warray-bounds]
98 | return (set->sig[3] | set->sig[2] |
| ^ ~
arch/x86/include/asm/signal.h:24:2: note: array 'sig' declared here
24 | unsigned long sig[_NSIG_WORDS];
| ^
In file included from arch/x86/kernel/asm-offsets.c:14:
In file included from include/linux/suspend.h:5:
In file included from include/linux/swap.h:9:
In file included from include/linux/memcontrol.h:13:
In file included from include/linux/cgroup.h:16:
In file included from include/linux/fs.h:33:
In file included from include/linux/percpu-rwsem.h:7:
In file included from include/linux/rcuwait.h:6:
In file included from include/linux/sched/signal.h:6:
include/linux/signal.h:98:25: warning: array index 2 is past the end of the array (that has type 'unsigned long[1]') [-Warray-bounds]
98 | return (set->sig[3] | set->sig[2] |
| ^ ~
arch/x86/include/asm/signal.h:24:2: note: array 'sig' declared here
24 | unsigned long sig[_NSIG_WORDS];
| ^
In file included from arch/x86/kernel/asm-offsets.c:14:
In file included from include/linux/suspend.h:5:
In file included from include/linux/swap.h:9:
In file included from include/linux/memcontrol.h:13:
In file included from include/linux/cgroup.h:16:
In file included from include/linux/fs.h:33:
In file included from include/linux/percpu-rwsem.h:7:
In file included from include/linux/rcuwait.h:6:
In file included from include/linux/sched/signal.h:6:
include/linux/signal.h:99:4: warning: array index 1 is past the end of the array (that has type 'unsigned long[1]') [-Warray-bounds]
99 | set->sig[1] | set->sig[0]) == 0;
| ^ ~
arch/x86/include/asm/signal.h:24:2: note: array 'sig' declared here
24 | unsigned long sig[_NSIG_WORDS];
| ^
In file included from arch/x86/kernel/asm-offsets.c:14:
In file included from include/linux/suspend.h:5:
In file included from include/linux/swap.h:9:
In file included from include/linux/memcontrol.h:13:
In file included from include/linux/cgroup.h:16:
In file included from include/linux/fs.h:33:
In file included from include/linux/percpu-rwsem.h:7:
In file included from include/linux/rcuwait.h:6:
In file included from include/linux/sched/signal.h:6:
include/linux/signal.h:101:11: warning: array index 1 is past the end of the array (that has type 'unsigned long[1]') [-Warray-bounds]
101 | return (set->sig[1] | set->sig[0]) == 0;
| ^ ~
arch/x86/include/asm/signal.h:24:2: note: array 'sig' declared here
24 | unsigned long sig[_NSIG_WORDS];
| ^
In file included from arch/x86/kernel/asm-offsets.c:14:
In file included from include/linux/suspend.h:5:
In file included from include/linux/swap.h:9:
In file included from include/linux/memcontrol.h:13:
In file included from include/linux/cgroup.h:16:
In file included from include/linux/fs.h:33:
In file included from include/linux/percpu-rwsem.h:7:
In file included from include/linux/rcuwait.h:6:
In file included from include/linux/sched/signal.h:6:
include/linux/signal.h:114:11: warning: array index 3 is past the end of the array (that has type 'const unsigned long[1]') [-Warray-bounds]
114 | return (set1->sig[3] == set2->sig[3]) &&
| ^ ~
arch/x86/include/asm/signal.h:24:2: note: array 'sig' declared here
24 | unsigned long sig[_NSIG_WORDS];
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