From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============5390837952842506894==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: [android-common:android12-5.10 6733/13830] arch/arm64/kvm/fpsimd.c:129:5: error: implicit declaration of function 'sve_cond_update_zcr_vq' Date: Sat, 11 Dec 2021 14:56:06 +0800 Message-ID: <202112111458.lmt6objs-lkp@intel.com> List-Id: --===============5390837952842506894== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi Marc, FYI, the error/warning still remains. tree: https://android.googlesource.com/kernel/common android12-5.10 head: 2d6a43c0364d3bb0c5c00b0a32b27f4c7740e004 commit: b0e15c8c44275afef4aacfb1560e38b974b02ac8 [6733/13830] FROMGIT: KVM:= arm64: Save/restore SVE state for nVHE config: arm64-randconfig-r022-20211210 (https://download.01.org/0day-ci/arc= hive/20211211/202112111458.lmt6objs-lkp(a)intel.com/config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 097a1c= b1d5ebb3a0ec4bcaed8ba3ff6a8e33c00a) reproduce (this is a W=3D1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/= make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # install arm64 cross compiling tool for clang build # apt-get install binutils-aarch64-linux-gnu git remote add android-common https://android.googlesource.com/kern= el/common git fetch --no-tags android-common android12-5.10 git checkout b0e15c8c44275afef4aacfb1560e38b974b02ac8 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dclang make.cross W=3D= 1 O=3Dbuild_dir ARCH=3Darm64 SHELL=3D/bin/bash arch/arm64/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): >> arch/arm64/kvm/fpsimd.c:129:5: error: implicit declaration of function '= sve_cond_update_zcr_vq' [-Werror,-Wimplicit-function-declaration] sve_cond_update_zcr_vq(vcpu_sve_max_vq(v= cpu) - 1, ^ 1 error generated. vim +/sve_cond_update_zcr_vq +129 arch/arm64/kvm/fpsimd.c 108 = 109 /* 110 * Write back the vcpu FPSIMD regs if they are dirty, and invalidate= the 111 * cpu FPSIMD regs so that they can't be spuriously reused if this v= cpu 112 * disappears and another task or vcpu appears that recycles the same 113 * struct fpsimd_state. 114 */ 115 void kvm_arch_vcpu_put_fp(struct kvm_vcpu *vcpu) 116 { 117 unsigned long flags; 118 bool host_has_sve =3D system_supports_sve(); 119 bool guest_has_sve =3D vcpu_has_sve(vcpu); 120 = 121 local_irq_save(flags); 122 = 123 if (vcpu->arch.flags & KVM_ARM64_FP_ENABLED) { 124 if (guest_has_sve) { 125 __vcpu_sys_reg(vcpu, ZCR_EL1) =3D read_sysreg_el1(SYS_ZCR); 126 = 127 /* Restore the VL that was saved when bound to the CPU */ 128 if (!has_vhe()) > 129 sve_cond_update_zcr_vq(vcpu_sve_max_vq(vcpu) - 1, --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============5390837952842506894==--