[openeuler:OLK-6.6 2667/2667] arch/arm64/kvm/arm.c:569:5: warning: no previous prototype for 'kvm_arch_rec_init'

tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: a5185c1b0fd7a9b3ea9b6923d5bcedc7392c59b7 commit: fa36fa3469d2461c1887e823371059401941ae8a [2667/2667] CCA: Fix cca kabi conflict config: arm64-defconfig (https://download.01.org/0day-ci/archive/20250812/202508120550.HjIMCdCV-lkp@i...) compiler: aarch64-linux-gcc (GCC) 15.1.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250812/202508120550.HjIMCdCV-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/202508120550.HjIMCdCV-lkp@intel.com/ All warnings (new ones prefixed by >>):
arch/arm64/kvm/arm.c:569:5: warning: no previous prototype for 'kvm_arch_rec_init' [-Wmissing-prototypes] 569 | int kvm_arch_rec_init(struct kvm_vcpu_arch *vcpu_arch) | ^~~~~~~~~~~~~~~~~ In file included from arch/arm64/kvm/arm.c:52: arch/arm64/kvm/hisilicon/hisi_virt.h:116:13: warning: 'hisi_ipiv_enable_per_vm' defined but not used [-Wunused-function] 116 | static void hisi_ipiv_enable_per_vm(struct kvm_vcpu *vcpu) {} | ^~~~~~~~~~~~~~~~~~~~~~~ arch/arm64/kvm/hisilicon/hisi_virt.h:112:13: warning: 'hisi_ipiv_supported_per_vm' defined but not used [-Wunused-function] 112 | static bool hisi_ipiv_supported_per_vm(struct kvm_vcpu *vcpu) | ^~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/kvm_arch_rec_init +569 arch/arm64/kvm/arm.c 568
569 int kvm_arch_rec_init(struct kvm_vcpu_arch *vcpu_arch) 570 { 571 struct realm_rec *rec; 572 573 rec = kzalloc(sizeof(struct realm_rec), GFP_KERNEL_ACCOUNT); 574 if (!rec) 575 return -ENOMEM; 576 rec->mpidr = INVALID_HWID; 577 vcpu_arch->rec = rec; 578 return 0; 579 } 580
-- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
participants (1)
-
kernel test robot