* [openeuler:OLK-6.6 7345/7439] arch/arm64/kernel/cpufeature.c:2209:57: error: 'enable_pseudo_nmi' undeclared; did you mean 'enable_percpu_nmi'?
@ 2024-04-16 12:53 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-04-16 12:53 UTC (permalink / raw
To: kernel, chenxiang; +Cc: oe-kbuild-all
tree: https://gitee.com/openeuler/kernel.git OLK-6.6
head: ba2303cacfdaf39c19a78290c541499b23712f54
commit: b8c8255e1d74937638bca666264404952c60395a [7345/7439] arm64: Decouple KVM from CONFIG_ARM64_NMI
config: arm64-allnoconfig (https://download.01.org/0day-ci/archive/20240416/202404162024.n82VbpYr-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240416/202404162024.n82VbpYr-lkp@intel.com/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 <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202404162024.n82VbpYr-lkp@intel.com/
All errors (new ones prefixed by >>):
arch/arm64/kernel/cpufeature.c: In function 'use_nmi':
>> arch/arm64/kernel/cpufeature.c:2209:57: error: 'enable_pseudo_nmi' undeclared (first use in this function); did you mean 'enable_percpu_nmi'?
2209 | else if (IS_ENABLED(CONFIG_ARM64_PSEUDO_NMI) && enable_pseudo_nmi) {
| ^~~~~~~~~~~~~~~~~
| enable_percpu_nmi
arch/arm64/kernel/cpufeature.c:2209:57: note: each undeclared identifier is reported only once for each function it appears in
vim +2209 arch/arm64/kernel/cpufeature.c
2191
2192 static bool use_nmi(const struct arm64_cpu_capabilities *entry, int scope)
2193 {
2194 if (!has_cpuid_feature(entry, scope))
2195 return false;
2196
2197 /*
2198 * NMI support was not enabled in the kernel, but can still be
2199 * used by guests. Let the world know.
2200 *
2201 * Having both real and pseudo NMIs enabled simultaneously is
2202 * likely to cause confusion. Since pseudo NMIs must be
2203 * enabled with an explicit command line option, if the user
2204 * has set that option on a system with real NMIs for some
2205 * reason assume they know what they're doing.
2206 */
2207 if (!IS_ENABLED(CONFIG_ARM64_NMI))
2208 pr_info("CONFIG_ARM64_NMI disabled, using NMIs for guests only\n");
> 2209 else if (IS_ENABLED(CONFIG_ARM64_PSEUDO_NMI) && enable_pseudo_nmi) {
2210 pr_info("Pseudo NMI enabled, not using architected NMI\n");
2211 return false;
2212 }
2213
2214 return true;
2215 }
2216
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-04-16 12:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-16 12:53 [openeuler:OLK-6.6 7345/7439] arch/arm64/kernel/cpufeature.c:2209:57: error: 'enable_pseudo_nmi' undeclared; did you mean 'enable_percpu_nmi'? kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.