kernel/unwind/deferred.c:52:1: sparse: sparse: Initializer entry defined twice
From: kernel test robot
Date: Thu Dec 03 2026 - 05:01:36 EST
Hi Josh,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: d06ce6f1eb5eeffd4ebcfde345dc34a98131d106
commit: 49cf34c0815f93fb2ea3ab5cfbac1124bd9b45d0 unwind_user/x86: Enable frame pointer unwinding on x86
date: 1 year, 1 month ago
config: x86_64-randconfig-r2311-20261203 (https://download.01.org/0day-ci/archive/20261203/20261203105459.SYfOD3Tp-lkp@xxxxxxxxx/config)
compiler: clang version 22.1.8 (https://github.com/llvm/llvm-project ca7933e47d3a3451d81e72ac174dcb5aa28b59d1)
sparse: v0.6.5-rc1-94-g0d159c10
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261203/20261203105459.SYfOD3Tp-lkp@xxxxxxxxx/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
| Fixes: 49cf34c0815f ("unwind_user/x86: Enable frame pointer unwinding on x86")
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/20261203105459.SYfOD3Tp-lkp@xxxxxxxxx/
sparse warnings: (new ones prefixed by >>)
>> kernel/unwind/deferred.c:52:1: sparse: sparse: Initializer entry defined twice
kernel/unwind/deferred.c:52:1: sparse: also defined here
kernel/unwind/deferred.c:149:13: sparse: sparse: context imbalance in 'process_unwind_deferred' - different lock contexts for basic block
kernel/unwind/deferred.c:257:13: sparse: sparse: unsigned value that used to be signed checked against zero?
kernel/unwind/deferred.c:256:15: sparse: signed value source
kernel/unwind/deferred.c: note: in included file (through include/linux/rbtree.h, include/linux/mm_types.h, include/asm-generic/fixmap.h, arch/x86/include/asm/fixmap.h, ...):
include/linux/rcupdate.h:897:25: sparse: sparse: context imbalance in 'unwind_deferred_cancel' - unexpected unlock
vim +52 kernel/unwind/deferred.c
be3d526a5b34109 Steven Rostedt 2025-07-29 49
be3d526a5b34109 Steven Rostedt 2025-07-29 50 /* Zero'd bits are available for assigning callback users */
be3d526a5b34109 Steven Rostedt 2025-07-29 51 static unsigned long unwind_mask = RESERVED_BITS;
357eda2d745054e Steven Rostedt 2025-07-29 @52 DEFINE_STATIC_SRCU(unwind_srcu);
be3d526a5b34109 Steven Rostedt 2025-07-29 53
:::::: The code at line 52 was first introduced by commit
:::::: 357eda2d745054eb737397368bc9b0f84814b0a5 unwind deferred: Use SRCU unwind_deferred_task_work()
:::::: TO: Steven Rostedt <rostedt@xxxxxxxxxxx>
:::::: CC: Steven Rostedt (Google) <rostedt@xxxxxxxxxxx>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki