From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============1208188355761762033==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: [ammarfaizi2-block:google/android/kernel/common/android12-trusty-5.10 4724/5869] arch/arm64/kvm/hyp/include/hyp/switch.h:216:9: error: implicit declaration of function 'sve_cond_update_zcr_vq' Date: Sun, 30 Jan 2022 13:43:47 +0800 Message-ID: <202201301345.a0dQdgTM-lkp@intel.com> List-Id: --===============1208188355761762033== 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://github.com/ammarfaizi2/linux-block google/android/kernel/co= mmon/android12-trusty-5.10 head: 94a36a1374e79fb3aa3539f8b99aa110fdc7b7a0 commit: 1105b4d1cef4bc19ad20129a716194268c937eaf [4724/5869] BACKPORT: FROM= GIT: KVM: arm64: Rework SVE host-save/guest-restore config: arm64-randconfig-c023-20220125 (https://download.01.org/0day-ci/arc= hive/20220130/202201301345.a0dQdgTM-lkp(a)intel.com/config) compiler: aarch64-linux-gcc (GCC) 11.2.0 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 # https://github.com/ammarfaizi2/linux-block/commit/1105b4d1cef4bc1= 9ad20129a716194268c937eaf git remote add ammarfaizi2-block https://github.com/ammarfaizi2/lin= ux-block git fetch --no-tags ammarfaizi2-block google/android/kernel/common/= android12-trusty-5.10 git checkout 1105b4d1cef4bc19ad20129a716194268c937eaf # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dgcc-11.2.0 make.cross= O=3Dbuild_dir ARCH=3Darm64 SHELL=3D/bin/bash arch/arm64/kvm/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot 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': >> arch/arm64/kvm/hyp/include/hyp/switch.h:216:9: error: implicit declarati= on of function 'sve_cond_update_zcr_vq' [-Werror=3Dimplicit-function-declar= ation] 216 | sve_cond_update_zcr_vq(vcpu_sve_max_vq(vcpu) - 1, SYS_ZC= R_EL2); | ^~~~~~~~~~~~~~~~~~~~~~ arch/arm64/kvm/hyp/nvhe/switch.c: At top level: arch/arm64/kvm/hyp/nvhe/switch.c:282:17: warning: no previous prototype = for 'kvm_unexpected_el2_exception' [-Wmissing-prototypes] 282 | 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': >> arch/arm64/kvm/hyp/include/hyp/switch.h:216:9: error: implicit declarati= on of function 'sve_cond_update_zcr_vq' [-Werror=3Dimplicit-function-declar= ation] 216 | sve_cond_update_zcr_vq(vcpu_sve_max_vq(vcpu) - 1, SYS_ZC= R_EL2); | ^~~~~~~~~~~~~~~~~~~~~~ arch/arm64/kvm/hyp/nvhe/hyp-main.c: At top level: arch/arm64/kvm/hyp/nvhe/hyp-main.c:233:6: warning: no previous prototype= for 'handle_trap' [-Wmissing-prototypes] 233 | void handle_trap(struct kvm_cpu_context *host_ctxt) | ^~~~~~~~~~~ cc1: some warnings being treated as errors -- In file included from arch/arm64/kvm/hyp/nvhe/mem_protect.c:15: arch/arm64/kvm/hyp/include/hyp/switch.h: In function '__hyp_sve_restore_= guest': >> arch/arm64/kvm/hyp/include/hyp/switch.h:216:9: error: implicit declarati= on of function 'sve_cond_update_zcr_vq' [-Werror=3Dimplicit-function-declar= ation] 216 | sve_cond_update_zcr_vq(vcpu_sve_max_vq(vcpu) - 1, SYS_ZC= R_EL2); | ^~~~~~~~~~~~~~~~~~~~~~ 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': >> arch/arm64/kvm/hyp/include/hyp/switch.h:216:9: error: implicit declarati= on of function 'sve_cond_update_zcr_vq' [-Werror=3Dimplicit-function-declar= ation] 216 | sve_cond_update_zcr_vq(vcpu_sve_max_vq(vcpu) - 1, SYS_ZC= R_EL2); | ^~~~~~~~~~~~~~~~~~~~~~ arch/arm64/kvm/hyp/vhe/switch.c: At top level: arch/arm64/kvm/hyp/vhe/switch.c:227:17: warning: no previous prototype f= or '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 +216 arch/arm64/kvm/hyp/include/hyp/switch.h 213 = 214 static inline void __hyp_sve_restore_guest(struct kvm_vcpu *vcpu) 215 { > 216 sve_cond_update_zcr_vq(vcpu_sve_max_vq(vcpu) - 1, SYS_ZCR_EL2); 217 __sve_restore_state(vcpu_sve_pffr(vcpu), 218 &vcpu->arch.ctxt.fp_regs.fpsr); 219 write_sysreg_el1(__vcpu_sys_reg(vcpu, ZCR_EL1), SYS_ZCR); 220 } 221 = --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============1208188355761762033==-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 79701C433EF for ; Sun, 30 Jan 2022 05:44:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352823AbiA3FoY (ORCPT ); Sun, 30 Jan 2022 00:44:24 -0500 Received: from mga12.intel.com ([192.55.52.136]:17243 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242894AbiA3FoX (ORCPT ); Sun, 30 Jan 2022 00:44:23 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1643521463; x=1675057463; h=date:from:to:cc:subject:message-id:mime-version; bh=NWJcBuyxSKRt1ihqGvNtbUyrbr4VtbIPgVIIwOvAhjA=; b=M5rUQeRNXgA8e+h7HscuKGykLnlHlb2r7xpJRA1seMkWFeoOjYS/dqLF +6rU4xmQ2O1JPpHe81WS3gxLSoFz2zfhdJYlh2tr83enwfhbY9Llw7tWj 9KuvrMoD45wcYOCPkfqWdmUtRKF6MkDLOIXSNK9rYdOJiQAHW+/93SjpV W/iJcqVSfAX0OrTGKZz4EyoOC7jbC3e/nZVawTzoIVqJ5GXXdlWDL+J0H IpAuffCJn35Xu9x7kVuErKp2NMzOcX23UEC6SctflMUoxr7P7bB7qgZIn aZY0EBhBPKJAo0DTX18c8NNjn3uQz3a+vvtC2iB6+rCVzxJDj2sCu8g3s g==; X-IronPort-AV: E=McAfee;i="6200,9189,10242"; a="227294864" X-IronPort-AV: E=Sophos;i="5.88,328,1635231600"; d="scan'208";a="227294864" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Jan 2022 21:44:22 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,328,1635231600"; d="scan'208";a="598565950" Received: from lkp-server01.sh.intel.com (HELO 276f1b88eecb) ([10.239.97.150]) by fmsmga004.fm.intel.com with ESMTP; 29 Jan 2022 21:44:21 -0800 Received: from kbuild by 276f1b88eecb with local (Exim 4.92) (envelope-from ) id 1nE30e-000Q7L-Fw; Sun, 30 Jan 2022 05:44:20 +0000 Date: Sun, 30 Jan 2022 13:43:47 +0800 From: kernel test robot To: Marc Zyngier Cc: kbuild-all@lists.01.org, GNU/Weeb Mailing List , linux-kernel@vger.kernel.org, Quentin Perret , Will Deacon Subject: [ammarfaizi2-block:google/android/kernel/common/android12-trusty-5.10 4724/5869] arch/arm64/kvm/hyp/include/hyp/switch.h:216:9: error: implicit declaration of function 'sve_cond_update_zcr_vq' Message-ID: <202201301345.a0dQdgTM-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Marc, FYI, the error/warning still remains. tree: https://github.com/ammarfaizi2/linux-block google/android/kernel/common/android12-trusty-5.10 head: 94a36a1374e79fb3aa3539f8b99aa110fdc7b7a0 commit: 1105b4d1cef4bc19ad20129a716194268c937eaf [4724/5869] BACKPORT: FROMGIT: KVM: arm64: Rework SVE host-save/guest-restore config: arm64-randconfig-c023-20220125 (https://download.01.org/0day-ci/archive/20220130/202201301345.a0dQdgTM-lkp@intel.com/config) compiler: aarch64-linux-gcc (GCC) 11.2.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://github.com/ammarfaizi2/linux-block/commit/1105b4d1cef4bc19ad20129a716194268c937eaf git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block git fetch --no-tags ammarfaizi2-block google/android/kernel/common/android12-trusty-5.10 git checkout 1105b4d1cef4bc19ad20129a716194268c937eaf # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arm64 SHELL=/bin/bash arch/arm64/kvm/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot 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': >> arch/arm64/kvm/hyp/include/hyp/switch.h:216:9: error: implicit declaration of function 'sve_cond_update_zcr_vq' [-Werror=implicit-function-declaration] 216 | 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:282:17: warning: no previous prototype for 'kvm_unexpected_el2_exception' [-Wmissing-prototypes] 282 | 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': >> arch/arm64/kvm/hyp/include/hyp/switch.h:216:9: error: implicit declaration of function 'sve_cond_update_zcr_vq' [-Werror=implicit-function-declaration] 216 | 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:233:6: warning: no previous prototype for 'handle_trap' [-Wmissing-prototypes] 233 | void handle_trap(struct kvm_cpu_context *host_ctxt) | ^~~~~~~~~~~ cc1: some warnings being treated as errors -- In file included from arch/arm64/kvm/hyp/nvhe/mem_protect.c:15: arch/arm64/kvm/hyp/include/hyp/switch.h: In function '__hyp_sve_restore_guest': >> arch/arm64/kvm/hyp/include/hyp/switch.h:216:9: error: implicit declaration of function 'sve_cond_update_zcr_vq' [-Werror=implicit-function-declaration] 216 | sve_cond_update_zcr_vq(vcpu_sve_max_vq(vcpu) - 1, SYS_ZCR_EL2); | ^~~~~~~~~~~~~~~~~~~~~~ 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': >> arch/arm64/kvm/hyp/include/hyp/switch.h:216:9: error: implicit declaration of function 'sve_cond_update_zcr_vq' [-Werror=implicit-function-declaration] 216 | 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 +216 arch/arm64/kvm/hyp/include/hyp/switch.h 213 214 static inline void __hyp_sve_restore_guest(struct kvm_vcpu *vcpu) 215 { > 216 sve_cond_update_zcr_vq(vcpu_sve_max_vq(vcpu) - 1, SYS_ZCR_EL2); 217 __sve_restore_state(vcpu_sve_pffr(vcpu), 218 &vcpu->arch.ctxt.fp_regs.fpsr); 219 write_sysreg_el1(__vcpu_sys_reg(vcpu, ZCR_EL1), SYS_ZCR); 220 } 221 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org