tree:
https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git locking/core
head: 0182cedcf7301c3d8659a10f04326945518f8652
commit: 0182cedcf7301c3d8659a10f04326945518f8652 [23/23] lockdep: report broken irq
restoration
config: sparc64-randconfig-p001-20201217 (attached as .config)
compiler: sparc64-linux-gcc (GCC) 9.3.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/?...
git remote add peterz-queue
https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git
git fetch --no-tags peterz-queue locking/core
git checkout 0182cedcf7301c3d8659a10f04326945518f8652
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=sparc64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from include/asm-generic/cmpxchg-local.h:6,
from arch/sparc/include/asm/cmpxchg_64.h:111,
from arch/sparc/include/asm/cmpxchg.h:5,
from arch/sparc/include/asm/atomic_64.h:12,
from arch/sparc/include/asm/atomic.h:5,
from include/linux/atomic.h:7,
from include/asm-generic/bitops/lock.h:5,
from arch/sparc/include/asm/bitops_64.h:52,
from arch/sparc/include/asm/bitops.h:5,
from include/linux/bitops.h:29,
from include/linux/kernel.h:12,
from include/asm-generic/bug.h:20,
from arch/sparc/include/asm/bug.h:25,
from include/linux/bug.h:5,
from include/linux/page-flags.h:10,
from kernel/bounds.c:10:
include/asm-generic/cmpxchg-local.h: In function '__cmpxchg_local_generic':
> include/linux/irqflags.h:165:3: error: implicit declaration of
function 'check_bogus_irq_restore' [-Werror=implicit-function-declaration]
165 | check_bogus_irq_restore(); \
| ^~~~~~~~~~~~~~~~~~~~~~~
include/asm-generic/cmpxchg-local.h:47:2: note: in expansion of macro
'raw_local_irq_restore'
47 | raw_local_irq_restore(flags);
| ^~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
--
In file included from include/asm-generic/cmpxchg-local.h:6,
from arch/sparc/include/asm/cmpxchg_64.h:111,
from arch/sparc/include/asm/cmpxchg.h:5,
from arch/sparc/include/asm/atomic_64.h:12,
from arch/sparc/include/asm/atomic.h:5,
from include/linux/atomic.h:7,
from include/asm-generic/bitops/lock.h:5,
from arch/sparc/include/asm/bitops_64.h:52,
from arch/sparc/include/asm/bitops.h:5,
from include/linux/bitops.h:29,
from include/linux/kernel.h:12,
from include/asm-generic/bug.h:20,
from arch/sparc/include/asm/bug.h:25,
from include/linux/bug.h:5,
from include/linux/page-flags.h:10,
from kernel/bounds.c:10:
include/asm-generic/cmpxchg-local.h: In function '__cmpxchg_local_generic':
> include/linux/irqflags.h:165:3: error: implicit declaration of
function 'check_bogus_irq_restore' [-Werror=implicit-function-declaration]
165 | check_bogus_irq_restore(); \
| ^~~~~~~~~~~~~~~~~~~~~~~
include/asm-generic/cmpxchg-local.h:47:2: note: in expansion of macro
'raw_local_irq_restore'
47 | raw_local_irq_restore(flags);
| ^~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:117: kernel/bounds.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1198: prepare0] Error 2
make[1]: Target 'modules_prepare' not remade because of errors.
make: *** [Makefile:185: __sub-make] Error 2
make: Target 'modules_prepare' not remade because of errors.
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for COMPAT_BINFMT_ELF
Depends on COMPAT && BINFMT_ELF
Selected by
- COMPAT && SPARC64
WARNING: unmet direct dependencies detected for FRAME_POINTER
Depends on DEBUG_KERNEL && (M68K || UML || SUPERH) || ARCH_WANT_FRAME_POINTERS
|| MCOUNT
Selected by
- LOCKDEP && DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT && !MIPS
&& !PPC && !ARM && !S390 && !MICROBLAZE && !ARC
&& !X86
vim +/check_bogus_irq_restore +165 include/linux/irqflags.h
151
152 /*
153 * Wrap the arch provided IRQ routines to provide appropriate checks.
154 */
155 #define raw_local_irq_disable() arch_local_irq_disable()
156 #define raw_local_irq_enable() arch_local_irq_enable()
157 #define raw_local_irq_save(flags) \
158 do { \
159 typecheck(unsigned long, flags); \
160 flags = arch_local_irq_save(); \
161 } while (0)
162 #define raw_local_irq_restore(flags) \
163 do { \
164 typecheck(unsigned long, flags); \
165 check_bogus_irq_restore(); \
166 arch_local_irq_restore(flags); \
167 } while (0)
168 #define raw_local_save_flags(flags) \
169 do { \
170 typecheck(unsigned long, flags); \
171 flags = arch_local_save_flags(); \
172 } while (0)
173 #define raw_irqs_disabled_flags(flags) \
174 ({ \
175 typecheck(unsigned long, flags); \
176 arch_irqs_disabled_flags(flags); \
177 })
178 #define raw_irqs_disabled() (arch_irqs_disabled())
179 #define raw_safe_halt() arch_safe_halt()
180
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org