[tglx-devel:timers/cleanup 58/59] arch/x86/kernel/apic/hw_nmi.c:29:15: error: use of undeclared identifier 'cpu_khz'
kernel test robot <[email protected]>
| Newsgroups | dev.linux.lists.llvm,dev.linux.lists.oe-kbuild-all |
|---|---|
| Message-ID | <[email protected]> |
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git timers/cleanup head: 0ad363c8e014568032d53fe2c7ab288de68373f4 commit: 27019f00127af90a16c3b8c54e976cdc8a711b0a [58/59] x86: Select ARCH_HAS_RANDOM_ENTROPY config: x86_64-rhel-9.4-rust (https://download.01.org/0day-ci/archive/20260712/[email protected]/config) compiler: clang version 22.1.8 (https://github.com/llvm/llvm-project ca7933e47d3a3451d81e72ac174dcb5aa28b59d1) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260712/[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/apic/hw_nmi.c:29:15: error: use of undeclared identifier 'cpu_khz' 29 | return (u64)(cpu_khz) * 1000 * watchdog_thresh; | ^~~~~~~ 1 error generated. vim +/cpu_khz +29 arch/x86/kernel/apic/hw_nmi.c 28b8235238fa39 Dave Hansen 2023-08-09 25 05a4a95279311c Nicholas Piggin 2017-07-12 26 #ifdef CONFIG_HARDLOCKUP_DETECTOR_PERF 4eec42f3920430 Mandeep Singh Baines 2011-05-22 27 u64 hw_nmi_get_sample_period(int watchdog_thresh) 504d7cf10ee42b Don Zickus 2010-02-12 28 { 4eec42f3920430 Mandeep Singh Baines 2011-05-22 @29 return (u64)(cpu_khz) * 1000 * watchdog_thresh; 504d7cf10ee42b Don Zickus 2010-02-12 30 } 5f2b0ba4d94b3a Don Zickus 2010-11-12 31 #endif 504d7cf10ee42b Don Zickus 2010-02-12 32 :::::: The code at line 29 was first introduced by commit :::::: 4eec42f392043063d0f019640b4ccc2a45570002 watchdog: Change the default timeout and configure nmi watchdog period based on watchdog_thresh :::::: TO: Mandeep Singh Baines <[email protected]> :::::: CC: Ingo Molnar <[email protected]> -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki