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: arm64-randconfig-r025-20201217 (attached as .config)
compiler: clang version 12.0.0 (
https://github.com/llvm/llvm-project
cee1e7d14f4628d6174b33640d502bff3b54ae45)
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
# install arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
#
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=clang make.cross ARCH=arm64
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 arch/arm64/kernel/asm-offsets.c:10:
In file included from include/linux/arm_sdei.h:8:
In file included from include/acpi/ghes.h:5:
In file included from include/acpi/apei.h:9:
In file included from include/linux/acpi.h:13:
In file included from include/linux/irqdomain.h:35:
In file included from include/linux/of.h:17:
In file included from include/linux/kobject.h:20:
In file included from include/linux/sysfs.h:16:
In file included from include/linux/kernfs.h:13:
In file included from include/linux/idr.h:15:
In file included from include/linux/radix-tree.h:17:
In file included from include/linux/spinlock.h:318:
include/linux/spinlock_api_smp.h:160:2: error: implicit declaration of function
'check_bogus_irq_restore' [-Werror,-Wimplicit-function-declaration]
local_irq_restore(flags);
^
include/linux/irqflags.h:212:3: note: expanded from macro 'local_irq_restore'
raw_local_irq_restore(flags); \
^
include/linux/irqflags.h:165:3: note: expanded from macro
'raw_local_irq_restore'
check_bogus_irq_restore(); \
^
In file included from arch/arm64/kernel/asm-offsets.c:10:
In file included from include/linux/arm_sdei.h:8:
In file included from include/acpi/ghes.h:5:
In file included from include/acpi/apei.h:9:
In file included from include/linux/acpi.h:13:
In file included from include/linux/irqdomain.h:35:
In file included from include/linux/of.h:17:
In file included from include/linux/kobject.h:20:
In file included from include/linux/sysfs.h:16:
In file included from include/linux/kernfs.h:13:
In file included from include/linux/idr.h:15:
In file included from include/linux/radix-tree.h:17:
In file included from include/linux/spinlock.h:318:
In file included from include/linux/spinlock_api_smp.h:190:
include/linux/rwlock_api_smp.h:235:2: error: implicit declaration of function
'check_bogus_irq_restore' [-Werror,-Wimplicit-function-declaration]
local_irq_restore(flags);
^
include/linux/irqflags.h:212:3: note: expanded from macro 'local_irq_restore'
raw_local_irq_restore(flags); \
^
include/linux/irqflags.h:165:3: note: expanded from macro
'raw_local_irq_restore'
check_bogus_irq_restore(); \
^
In file included from arch/arm64/kernel/asm-offsets.c:10:
In file included from include/linux/arm_sdei.h:8:
In file included from include/acpi/ghes.h:5:
In file included from include/acpi/apei.h:9:
In file included from include/linux/acpi.h:13:
In file included from include/linux/irqdomain.h:35:
In file included from include/linux/of.h:17:
In file included from include/linux/kobject.h:20:
In file included from include/linux/sysfs.h:16:
In file included from include/linux/kernfs.h:13:
In file included from include/linux/idr.h:15:
In file included from include/linux/radix-tree.h:17:
In file included from include/linux/spinlock.h:318:
In file included from include/linux/spinlock_api_smp.h:190:
include/linux/rwlock_api_smp.h:259:2: error: implicit declaration of function
'check_bogus_irq_restore' [-Werror,-Wimplicit-function-declaration]
local_irq_restore(flags);
^
include/linux/irqflags.h:212:3: note: expanded from macro 'local_irq_restore'
raw_local_irq_restore(flags); \
^
include/linux/irqflags.h:165:3: note: expanded from macro
'raw_local_irq_restore'
check_bogus_irq_restore(); \
^
In file included from arch/arm64/kernel/asm-offsets.c:10:
In file included from include/linux/arm_sdei.h:8:
In file included from include/acpi/ghes.h:5:
In file included from include/acpi/apei.h:9:
In file included from include/linux/acpi.h:13:
In file included from include/linux/irqdomain.h:35:
In file included from include/linux/of.h:17:
In file included from include/linux/kobject.h:20:
In file included from include/linux/sysfs.h:16:
In file included from include/linux/kernfs.h:13:
In file included from include/linux/idr.h:15:
In file included from include/linux/radix-tree.h:19:
In file included from include/linux/xarray.h:14:
In file included from include/linux/gfp.h:6:
In file included from include/linux/mmzone.h:16:
include/linux/seqlock.h:105:2: error: implicit declaration of function
'check_bogus_irq_restore' [-Werror,-Wimplicit-function-declaration]
local_irq_restore(flags);
^
include/linux/irqflags.h:212:3: note: expanded from macro 'local_irq_restore'
raw_local_irq_restore(flags); \
^
include/linux/irqflags.h:165:3: note: expanded from macro
'raw_local_irq_restore'
check_bogus_irq_restore(); \
^
In file included from arch/arm64/kernel/asm-offsets.c:14:
In file included from include/linux/kvm_host.h:24:
> include/linux/context_tracking.h:176:2: error: implicit
declaration of function 'check_bogus_irq_restore'
[-Werror,-Wimplicit-function-declaration]
local_irq_restore(flags);
^
include/linux/irqflags.h:212:3: note: expanded from macro 'local_irq_restore'
raw_local_irq_restore(flags); \
^
include/linux/irqflags.h:165:3: note: expanded from macro
'raw_local_irq_restore'
check_bogus_irq_restore(); \
^
In file included from arch/arm64/kernel/asm-offsets.c:14:
In file included from include/linux/kvm_host.h:36:
In file included from arch/arm64/include/asm/kvm_host.h:37:
In file included from include/kvm/arm_pmu.h:10:
In file included from include/linux/perf_event.h:57:
In file included from include/linux/cgroup.h:26:
In file included from include/linux/kernel_stat.h:9:
include/linux/interrupt.h:457:2: error: implicit declaration of function
'check_bogus_irq_restore' [-Werror,-Wimplicit-function-declaration]
local_irq_restore(*flags);
^
include/linux/irqflags.h:212:3: note: expanded from macro 'local_irq_restore'
raw_local_irq_restore(flags); \
^
include/linux/irqflags.h:165:3: note: expanded from macro
'raw_local_irq_restore'
check_bogus_irq_restore(); \
^
In file included from arch/arm64/kernel/asm-offsets.c:16:
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:22:
In file included from include/linux/writeback.h:11:
include/linux/flex_proportions.h:70:2: error: implicit declaration of function
'check_bogus_irq_restore' [-Werror,-Wimplicit-function-declaration]
local_irq_restore(flags);
^
include/linux/irqflags.h:212:3: note: expanded from macro 'local_irq_restore'
raw_local_irq_restore(flags); \
^
include/linux/irqflags.h:165:3: note: expanded from macro
'raw_local_irq_restore'
check_bogus_irq_restore(); \
^
In file included from arch/arm64/kernel/asm-offsets.c:16:
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:22:
In file included from include/linux/writeback.h:11:
include/linux/flex_proportions.h:100:2: error: implicit declaration of function
'check_bogus_irq_restore' [-Werror,-Wimplicit-function-declaration]
local_irq_restore(flags);
^
include/linux/irqflags.h:212:3: note: expanded from macro 'local_irq_restore'
raw_local_irq_restore(flags); \
^
include/linux/irqflags.h:165:3: note: expanded from macro
'raw_local_irq_restore'
check_bogus_irq_restore(); \
^
8 errors generated.
--
In file included from arch/arm64/kernel/asm-offsets.c:10:
In file included from include/linux/arm_sdei.h:8:
In file included from include/acpi/ghes.h:5:
In file included from include/acpi/apei.h:9:
In file included from include/linux/acpi.h:13:
In file included from include/linux/irqdomain.h:35:
In file included from include/linux/of.h:17:
In file included from include/linux/kobject.h:20:
In file included from include/linux/sysfs.h:16:
In file included from include/linux/kernfs.h:13:
In file included from include/linux/idr.h:15:
In file included from include/linux/radix-tree.h:17:
In file included from include/linux/spinlock.h:318:
include/linux/spinlock_api_smp.h:160:2: error: implicit declaration of function
'check_bogus_irq_restore' [-Werror,-Wimplicit-function-declaration]
local_irq_restore(flags);
^
include/linux/irqflags.h:212:3: note: expanded from macro 'local_irq_restore'
raw_local_irq_restore(flags); \
^
include/linux/irqflags.h:165:3: note: expanded from macro
'raw_local_irq_restore'
check_bogus_irq_restore(); \
^
In file included from arch/arm64/kernel/asm-offsets.c:10:
In file included from include/linux/arm_sdei.h:8:
In file included from include/acpi/ghes.h:5:
In file included from include/acpi/apei.h:9:
In file included from include/linux/acpi.h:13:
In file included from include/linux/irqdomain.h:35:
In file included from include/linux/of.h:17:
In file included from include/linux/kobject.h:20:
In file included from include/linux/sysfs.h:16:
In file included from include/linux/kernfs.h:13:
In file included from include/linux/idr.h:15:
In file included from include/linux/radix-tree.h:17:
In file included from include/linux/spinlock.h:318:
In file included from include/linux/spinlock_api_smp.h:190:
include/linux/rwlock_api_smp.h:235:2: error: implicit declaration of function
'check_bogus_irq_restore' [-Werror,-Wimplicit-function-declaration]
local_irq_restore(flags);
^
include/linux/irqflags.h:212:3: note: expanded from macro 'local_irq_restore'
raw_local_irq_restore(flags); \
^
include/linux/irqflags.h:165:3: note: expanded from macro
'raw_local_irq_restore'
check_bogus_irq_restore(); \
^
In file included from arch/arm64/kernel/asm-offsets.c:10:
In file included from include/linux/arm_sdei.h:8:
In file included from include/acpi/ghes.h:5:
In file included from include/acpi/apei.h:9:
In file included from include/linux/acpi.h:13:
In file included from include/linux/irqdomain.h:35:
In file included from include/linux/of.h:17:
In file included from include/linux/kobject.h:20:
In file included from include/linux/sysfs.h:16:
In file included from include/linux/kernfs.h:13:
In file included from include/linux/idr.h:15:
In file included from include/linux/radix-tree.h:17:
In file included from include/linux/spinlock.h:318:
In file included from include/linux/spinlock_api_smp.h:190:
include/linux/rwlock_api_smp.h:259:2: error: implicit declaration of function
'check_bogus_irq_restore' [-Werror,-Wimplicit-function-declaration]
local_irq_restore(flags);
^
include/linux/irqflags.h:212:3: note: expanded from macro 'local_irq_restore'
raw_local_irq_restore(flags); \
^
include/linux/irqflags.h:165:3: note: expanded from macro
'raw_local_irq_restore'
check_bogus_irq_restore(); \
^
In file included from arch/arm64/kernel/asm-offsets.c:10:
In file included from include/linux/arm_sdei.h:8:
In file included from include/acpi/ghes.h:5:
In file included from include/acpi/apei.h:9:
In file included from include/linux/acpi.h:13:
In file included from include/linux/irqdomain.h:35:
In file included from include/linux/of.h:17:
In file included from include/linux/kobject.h:20:
In file included from include/linux/sysfs.h:16:
In file included from include/linux/kernfs.h:13:
In file included from include/linux/idr.h:15:
In file included from include/linux/radix-tree.h:19:
In file included from include/linux/xarray.h:14:
In file included from include/linux/gfp.h:6:
In file included from include/linux/mmzone.h:16:
include/linux/seqlock.h:105:2: error: implicit declaration of function
'check_bogus_irq_restore' [-Werror,-Wimplicit-function-declaration]
local_irq_restore(flags);
^
include/linux/irqflags.h:212:3: note: expanded from macro 'local_irq_restore'
raw_local_irq_restore(flags); \
^
include/linux/irqflags.h:165:3: note: expanded from macro
'raw_local_irq_restore'
check_bogus_irq_restore(); \
^
In file included from arch/arm64/kernel/asm-offsets.c:14:
In file included from include/linux/kvm_host.h:24:
> include/linux/context_tracking.h:176:2: error: implicit
declaration of function 'check_bogus_irq_restore'
[-Werror,-Wimplicit-function-declaration]
local_irq_restore(flags);
^
include/linux/irqflags.h:212:3: note: expanded from macro 'local_irq_restore'
raw_local_irq_restore(flags); \
^
include/linux/irqflags.h:165:3: note: expanded from macro
'raw_local_irq_restore'
check_bogus_irq_restore(); \
^
In file included from arch/arm64/kernel/asm-offsets.c:14:
In file included from include/linux/kvm_host.h:36:
In file included from arch/arm64/include/asm/kvm_host.h:37:
In file included from include/kvm/arm_pmu.h:10:
In file included from include/linux/perf_event.h:57:
In file included from include/linux/cgroup.h:26:
In file included from include/linux/kernel_stat.h:9:
include/linux/interrupt.h:457:2: error: implicit declaration of function
'check_bogus_irq_restore' [-Werror,-Wimplicit-function-declaration]
local_irq_restore(*flags);
^
include/linux/irqflags.h:212:3: note: expanded from macro 'local_irq_restore'
raw_local_irq_restore(flags); \
^
include/linux/irqflags.h:165:3: note: expanded from macro
'raw_local_irq_restore'
check_bogus_irq_restore(); \
^
In file included from arch/arm64/kernel/asm-offsets.c:16:
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:22:
In file included from include/linux/writeback.h:11:
include/linux/flex_proportions.h:70:2: error: implicit declaration of function
'check_bogus_irq_restore' [-Werror,-Wimplicit-function-declaration]
local_irq_restore(flags);
^
include/linux/irqflags.h:212:3: note: expanded from macro 'local_irq_restore'
raw_local_irq_restore(flags); \
^
include/linux/irqflags.h:165:3: note: expanded from macro
'raw_local_irq_restore'
check_bogus_irq_restore(); \
^
In file included from arch/arm64/kernel/asm-offsets.c:16:
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:22:
In file included from include/linux/writeback.h:11:
include/linux/flex_proportions.h:100:2: error: implicit declaration of function
'check_bogus_irq_restore' [-Werror,-Wimplicit-function-declaration]
local_irq_restore(flags);
^
include/linux/irqflags.h:212:3: note: expanded from macro 'local_irq_restore'
raw_local_irq_restore(flags); \
^
include/linux/irqflags.h:165:3: note: expanded from macro
'raw_local_irq_restore'
check_bogus_irq_restore(); \
^
8 errors generated.
make[2]: *** [scripts/Makefile.build:117: arch/arm64/kernel/asm-offsets.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1198: prepare0] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:185: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
vim +/check_bogus_irq_restore +176 include/linux/context_tracking.h
91d1aa43d30505b Frederic Weisbecker 2012-11-27 169
ebaac1736245e78 Paolo Bonzini 2016-06-15 170 static inline void guest_exit(void)
ebaac1736245e78 Paolo Bonzini 2016-06-15 171 {
ebaac1736245e78 Paolo Bonzini 2016-06-15 172 unsigned long flags;
ebaac1736245e78 Paolo Bonzini 2016-06-15 173
ebaac1736245e78 Paolo Bonzini 2016-06-15 174 local_irq_save(flags);
ebaac1736245e78 Paolo Bonzini 2016-06-15 175 guest_exit_irqoff();
ebaac1736245e78 Paolo Bonzini 2016-06-15 @176 local_irq_restore(flags);
ebaac1736245e78 Paolo Bonzini 2016-06-15 177 }
ebaac1736245e78 Paolo Bonzini 2016-06-15 178
:::::: The code at line 176 was first introduced by commit
:::::: ebaac1736245e78109cd47d453a86a18dcfc94b8 context_tracking: move
rcu_virt_note_context_switch out of kvm_host.h
:::::: TO: Paolo Bonzini <pbonzini(a)redhat.com>
:::::: CC: Paolo Bonzini <pbonzini(a)redhat.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org