[linux-next:master 4677/6863] arch/arm64/kvm/hyp/include/hyp/switch.h:211:2: error: implicit declaration of function 'sve_cond_update_zcr_vq'
From: kernel test robot <hidden>
Date: 2021-03-25 04:00:32
Also in:
oe-kbuild-all
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 20f1b5f9c07ca3a49e869327d4705b4254258756 commit: 52029198c1cec1e21513d74f87363a0408f28650 [4677/6863] KVM: arm64: Rework SVE host-save/guest-restore config: arm64-randconfig-r033-20210325 (attached as .config) compiler: aarch64-linux-gcc (GCC) 9.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=52029198c1cec1e21513d74f87363a0408f28650 git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git fetch --no-tags linux-next master git checkout 52029198c1cec1e21513d74f87363a0408f28650 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm64 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <redacted> All errors (new ones prefixed by >>): In file included from arch/arm64/kvm/hyp/nvhe/switch.c:8: arch/arm64/kvm/hyp/include/hyp/switch.h: In function '__hyp_sve_restore_guest':
quoted
arch/arm64/kvm/hyp/include/hyp/switch.h:211:2: error: implicit declaration of function 'sve_cond_update_zcr_vq' [-Werror=implicit-function-declaration]
211 | sve_cond_update_zcr_vq(vcpu_sve_max_vq(vcpu) - 1, SYS_ZCR_EL2);
| ^~~~~~~~~~~~~~~~~~~~~~
arch/arm64/kvm/hyp/nvhe/switch.c: At top level:
arch/arm64/kvm/hyp/nvhe/switch.c:278:17: warning: no previous prototype for 'kvm_unexpected_el2_exception' [-Wmissing-prototypes]
278 | asmlinkage void kvm_unexpected_el2_exception(void)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
--
In file included from arch/arm64/kvm/hyp/nvhe/hyp-main.c:7:
arch/arm64/kvm/hyp/include/hyp/switch.h: In function '__hyp_sve_restore_guest':quoted
arch/arm64/kvm/hyp/include/hyp/switch.h:211:2: error: implicit declaration of function 'sve_cond_update_zcr_vq' [-Werror=implicit-function-declaration]
211 | sve_cond_update_zcr_vq(vcpu_sve_max_vq(vcpu) - 1, SYS_ZCR_EL2);
| ^~~~~~~~~~~~~~~~~~~~~~
arch/arm64/kvm/hyp/nvhe/hyp-main.c: At top level:
arch/arm64/kvm/hyp/nvhe/hyp-main.c:169:6: warning: no previous prototype for 'handle_trap' [-Wmissing-prototypes]
169 | void handle_trap(struct kvm_cpu_context *host_ctxt)
| ^~~~~~~~~~~
cc1: some warnings being treated as errors
--
In file included from arch/arm64/kvm/hyp/vhe/switch.c:8:
arch/arm64/kvm/hyp/include/hyp/switch.h: In function '__hyp_sve_restore_guest':quoted
arch/arm64/kvm/hyp/include/hyp/switch.h:211:2: error: implicit declaration of function 'sve_cond_update_zcr_vq' [-Werror=implicit-function-declaration]
211 | sve_cond_update_zcr_vq(vcpu_sve_max_vq(vcpu) - 1, SYS_ZCR_EL2);
| ^~~~~~~~~~~~~~~~~~~~~~
arch/arm64/kvm/hyp/vhe/switch.c: At top level:
arch/arm64/kvm/hyp/vhe/switch.c:227:17: warning: no previous prototype for 'kvm_unexpected_el2_exception' [-Wmissing-prototypes]
227 | asmlinkage void kvm_unexpected_el2_exception(void)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/sve_cond_update_zcr_vq +211 arch/arm64/kvm/hyp/include/hyp/switch.h
208
209 static inline void __hyp_sve_restore_guest(struct kvm_vcpu *vcpu)
210 {
> 211 sve_cond_update_zcr_vq(vcpu_sve_max_vq(vcpu) - 1, SYS_ZCR_EL2);
212 __sve_restore_state(vcpu_sve_pffr(vcpu),
213 &vcpu->arch.ctxt.fp_regs.fpsr);
214 write_sysreg_el1(__vcpu_sys_reg(vcpu, ZCR_EL1), SYS_ZCR);
215 }
216
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Attachments
- .config.gz [application/gzip] 37726 bytes