[openeuler:OLK-6.6 2331/2331] arch/arm64/kvm/hisilicon/hisi_virt.h:116:13: warning: 'hisi_ipiv_enable_per_vm' defined but not used

tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: 66b0cef2a959be1562a528e3d8cc260dc3803e61 commit: cd77c03a1ee1bcae1ffbde74afcc32a0a1bb0273 [2331/2331] KVM: arm64: Implement PV_SGI related calls config: arm64-defconfig (https://download.01.org/0day-ci/archive/20250529/202505291449.qcY77e1i-lkp@i...) compiler: aarch64-linux-gcc (GCC) 15.1.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250529/202505291449.qcY77e1i-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/202505291449.qcY77e1i-lkp@intel.com/ All warnings (new ones prefixed by >>): In file included from arch/arm64/kvm/arm.c:53:
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 +/hisi_ipiv_enable_per_vm +116 arch/arm64/kvm/hisilicon/hisi_virt.h 89 90 int kvm_sched_affinity_vcpu_init(struct kvm_vcpu *vcpu); 91 void kvm_sched_affinity_vcpu_destroy(struct kvm_vcpu *vcpu); 92 int kvm_sched_affinity_vm_init(struct kvm *kvm); 93 void kvm_sched_affinity_vm_destroy(struct kvm *kvm); 94 void kvm_tlbi_dvmbm_vcpu_load(struct kvm_vcpu *vcpu); 95 void kvm_tlbi_dvmbm_vcpu_put(struct kvm_vcpu *vcpu); 96 void kvm_hisi_reload_lsudvmbm(struct kvm *kvm); 97 #else 98 static inline void probe_hisi_cpu_type(void) {} 99 static inline bool hisi_ncsnp_supported(void) 100 { 101 return false; 102 } 103 static inline bool hisi_dvmbm_supported(void) 104 { 105 return false; 106 } 107 #ifdef CONFIG_ARM64_HISI_IPIV 108 static inline bool hisi_ipiv_supported(void) 109 { 110 return false; 111 }
112 static bool hisi_ipiv_supported_per_vm(struct kvm_vcpu *vcpu) 113 { 114 return false; 115 } 116 static void hisi_ipiv_enable_per_vm(struct kvm_vcpu *vcpu) {} 117 static inline void ipiv_gicd_init(void) {} 118 #endif /* CONFIG_ARM64_HISI_IPIV */ 119 static inline void kvm_get_pg_cfg(void) {} 120
-- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
participants (1)
-
kernel test robot