arch/x86/kernel/kvm.c:70:1: sparse: sparse: symbol '__pcpu_scope_steal_time' was not declared. Should it be static?

From: kernel test robot
Date: Sun Dec 24 2023 - 22:51:47 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 861deac3b092f37b2c5e6871732f3e11486f7082
commit: 14e581c381b942ce5463a7e61326d8ce1c843be7 x86/kvm: Make steal_time visible
date: 4 years, 8 months ago
config: x86_64-randconfig-122-20231101 (https://download.01.org/0day-ci/archive/20231225/202312251110.VDvI8CSS-lkp@xxxxxxxxx/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231225/202312251110.VDvI8CSS-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202312251110.VDvI8CSS-lkp@xxxxxxxxx/

sparse warnings: (new ones prefixed by >>)
>> arch/x86/kernel/kvm.c:70:1: sparse: sparse: symbol '__pcpu_scope_steal_time' was not declared. Should it be static?

vim +/__pcpu_scope_steal_time +70 arch/x86/kernel/kvm.c

68
69 static DEFINE_PER_CPU_DECRYPTED(struct kvm_vcpu_pv_apf_data, apf_reason) __aligned(64);
> 70 DEFINE_PER_CPU_DECRYPTED(struct kvm_steal_time, steal_time) __aligned(64) __visible;
71 static int has_steal_clock = 0;
72

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