Skip to contentSkip to conversation

arch/x86/kernel/reboot.c:939:20: error: unused function 'nmi_shootdown_cpus_on_restart'

DISCUSSION kernel test robot 1 participant 1 message Aug 31, 2024

lore
Share & tools
lore

kernel test robot

author build bot
#0 lore raw
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   1934261d897467a924e2afd1181a74c1cbfa2c1d
commit: 261cd5ed934e6923187cf1c9eaa6cb63f2b81212 x86/reboot: Expose VMCS crash hooks if and only if KVM_{INTEL,AMD} is enabled
date:   1 year, 1 month ago
config: x86_64-sof-customedconfig-amd-defconfig (https://download.01.org/0day-ci/archive/20240901/[email protected]/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/20240901/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

All errors (new ones prefixed by >>):

>> arch/x86/kernel/reboot.c:939:20: error: unused function 'nmi_shootdown_cpus_on_restart' [-Werror,-Wunused-function]

939 | static inline void nmi_shootdown_cpus_on_restart(void)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

vim +/nmi_shootdown_cpus_on_restart +939 arch/x86/kernel/reboot.c

26044aff37a5455 Sean Christopherson 2022-11-30 938

26044aff37a5455 Sean Christopherson 2022-11-30 @939  static inline void nmi_shootdown_cpus_on_restart(void)
26044aff37a5455 Sean Christopherson 2022-11-30  940  {
26044aff37a5455 Sean Christopherson 2022-11-30  941  	if (!crash_ipi_issued)
26044aff37a5455 Sean Christopherson 2022-11-30  942  		nmi_shootdown_cpus(NULL);
2ddded213895e41 Eduardo Habkost     2008-11-12  943  }

58c5661f2144c08 Hidehiro Kawai 2015-12-14 944

:::::: The code at line 939 was first introduced by commit
:::::: 26044aff37a5455b19a91785086914fd33053ef4 x86/crash: Disable virt in core NMI crash handler to avoid double shootdown

:::::: TO: Sean Christopherson <[email protected]> :::::: CC: Sean Christopherson <[email protected]>

Signature · 2 lines
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki