[openeuler:OLK-5.10 3256/3256] arch/x86/kvm/x86.c:8661:5: sparse: sparse: symbol '__kvm_vcpu_halt' was not declared. Should it be static?
tree: https://gitee.com/openeuler/kernel.git OLK-5.10 head: e5b3f6c2a77fa1ef4962e1a3875f03706af77ccd commit: c499a3120204c834ff963c43d90a5ff33194b34c [3256/3256] KVM: SVM: Add support for booting APs in an SEV-ES guest config: x86_64-randconfig-122-20251028 (https://download.01.org/0day-ci/archive/20251028/202510281231.vqq8hCtx-lkp@i...) compiler: gcc-14 (Debian 14.2.0-19) 14.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251028/202510281231.vqq8hCtx-lkp@i...) 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/202510281231.vqq8hCtx-lkp@intel.com/ sparse warnings: (new ones prefixed by >>) arch/x86/kvm/x86.c:3138:38: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const [noderef] __user * @@ got unsigned char [usertype] * @@ arch/x86/kvm/x86.c:3138:38: sparse: expected void const [noderef] __user * arch/x86/kvm/x86.c:3138:38: sparse: got unsigned char [usertype] *
arch/x86/kvm/x86.c:8661:5: sparse: sparse: symbol '__kvm_vcpu_halt' was not declared. Should it be static? arch/x86/kvm/x86.c:8772:15: sparse: sparse: incompatible types in comparison expression (different address spaces): arch/x86/kvm/x86.c:8772:15: sparse: struct kvm_apic_map [noderef] __rcu * arch/x86/kvm/x86.c:8772:15: sparse: struct kvm_apic_map * arch/x86/kvm/x86.c:11225:32: sparse: sparse: Using plain integer as NULL pointer arch/x86/kvm/x86.c:11278:16: sparse: sparse: incompatible types in comparison expression (different address spaces): arch/x86/kvm/x86.c:11278:16: sparse: struct kvm_apic_map [noderef] __rcu * arch/x86/kvm/x86.c:11278:16: sparse: struct kvm_apic_map * arch/x86/kvm/x86.c:11279:15: sparse: sparse: incompatible types in comparison expression (different address spaces): arch/x86/kvm/x86.c:11279:15: sparse: struct kvm_pmu_event_filter [noderef] __rcu * arch/x86/kvm/x86.c:11279:15: sparse: struct kvm_pmu_event_filter * arch/x86/kvm/x86.c: note: in included file (through include/linux/notifier.h, include/linux/memory_hotplug.h, include/linux/mmzone.h, ...): include/linux/srcu.h:182:9: sparse: sparse: context imbalance in 'vcpu_enter_guest' - unexpected unlock
vim +/__kvm_vcpu_halt +8661 arch/x86/kvm/x86.c 8660
8661 int __kvm_vcpu_halt(struct kvm_vcpu *vcpu, int state, int reason) 8662 { 8663 ++vcpu->stat.halt_exits; 8664 if (lapic_in_kernel(vcpu)) { 8665 vcpu->arch.mp_state = state; 8666 return 1; 8667 } else { 8668 vcpu->run->exit_reason = reason; 8669 return 0; 8670 } 8671 } 8672
-- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
participants (1)
-
kernel test robot