From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============4363082673238306505==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: [ammarfaizi2-block:google/android/kernel/common/android13-5.15 2757/2766] arch/arm64/kvm/arm.c:2011:46: error: 'smccc_trng_available' undeclared Date: Tue, 18 Jan 2022 10:02:00 +0800 Message-ID: <202201181042.DbgIXpRm-lkp@intel.com> List-Id: --===============4363082673238306505== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable tree: https://github.com/ammarfaizi2/linux-block google/android/kernel/co= mmon/android13-5.15 head: 9c25e5d6f58362a8ff78327664a2e3c2a538009f commit: 888643ea37b504cb32afdd6430698d1e92a79a71 [2757/2766] ANDROID: KVM: = arm64: relay entropy requests from protected guests directly to secure config: arm64-buildonly-randconfig-r006-20220116 (https://download.01.org/0= day-ci/archive/20220118/202201181042.DbgIXpRm-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/888643ea37b504c= b32afdd6430698d1e92a79a71 git remote add ammarfaizi2-block https://github.com/ammarfaizi2/lin= ux-block git fetch --no-tags ammarfaizi2-block google/android/kernel/common/= android13-5.15 git checkout 888643ea37b504cb32afdd6430698d1e92a79a71 # 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 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/arm.c: In function 'kvm_hyp_init_protection': >> arch/arm64/kvm/arm.c:2011:46: error: 'smccc_trng_available' undeclared (= first use in this function) 2011 | kvm_nvhe_sym(smccc_trng_available) =3D smccc_trng_availa= ble; | ^~~~~~~~~~~~~~~~~~~~ arch/arm64/kvm/arm.c:2011:46: note: each undeclared identifier is report= ed only once for each function it appears in vim +/smccc_trng_available +2011 arch/arm64/kvm/arm.c 1997 = 1998 static int kvm_hyp_init_protection(u32 hyp_va_bits) 1999 { 2000 void *addr =3D phys_to_virt(hyp_mem_base); 2001 int ret; 2002 = 2003 kvm_nvhe_sym(id_aa64pfr0_el1_sys_val) =3D read_sanitised_ftr_reg(SY= S_ID_AA64PFR0_EL1); 2004 kvm_nvhe_sym(id_aa64pfr1_el1_sys_val) =3D read_sanitised_ftr_reg(SY= S_ID_AA64PFR1_EL1); 2005 kvm_nvhe_sym(id_aa64isar0_el1_sys_val) =3D read_sanitised_ftr_reg(S= YS_ID_AA64ISAR0_EL1); 2006 kvm_nvhe_sym(id_aa64isar1_el1_sys_val) =3D read_sanitised_ftr_reg(S= YS_ID_AA64ISAR1_EL1); 2007 kvm_nvhe_sym(id_aa64mmfr0_el1_sys_val) =3D read_sanitised_ftr_reg(S= YS_ID_AA64MMFR0_EL1); 2008 kvm_nvhe_sym(id_aa64mmfr1_el1_sys_val) =3D read_sanitised_ftr_reg(S= YS_ID_AA64MMFR1_EL1); 2009 kvm_nvhe_sym(id_aa64mmfr2_el1_sys_val) =3D read_sanitised_ftr_reg(S= YS_ID_AA64MMFR2_EL1); 2010 kvm_nvhe_sym(__icache_flags) =3D __icache_flags; > 2011 kvm_nvhe_sym(smccc_trng_available) =3D smccc_trng_available; 2012 = 2013 ret =3D create_hyp_mappings(addr, addr + hyp_mem_size, PAGE_HYP); 2014 if (ret) 2015 return ret; 2016 = 2017 ret =3D init_stage2_iommu(); 2018 if (ret < 0) 2019 return ret; 2020 = 2021 ret =3D do_pkvm_init(hyp_va_bits, (enum kvm_iommu_driver)ret); 2022 if (ret) 2023 return ret; 2024 = 2025 free_hyp_pgds(); 2026 = 2027 return 0; 2028 } 2029 = --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org --===============4363082673238306505==-- 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 78985C433F5 for ; Tue, 18 Jan 2022 02:03:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244184AbiARCDA (ORCPT ); Mon, 17 Jan 2022 21:03:00 -0500 Received: from mga07.intel.com ([134.134.136.100]:30016 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236398AbiARCC7 (ORCPT ); Mon, 17 Jan 2022 21:02:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1642471379; x=1674007379; h=date:from:to:cc:subject:message-id:mime-version; bh=DO60SYZK55LqY+iI/tKbOiKvluu3V1PlqmIp6apEQP4=; b=Hz2mr0nkqqeiav4H4MSOZI6lHY2rF1av4VvFsi9PG1m37WNlj5Gt/iZI +11Wkwnhvj5JrUC4a6M3EEnMqQxLbrtxiFG+kkNvPYNC0cd0kjz4Wqy7/ drndY9Yhww/9Yqi2b7k32eyvtFupj+yWt/wpUrrCbab68VJTLSY2FhnG9 v2+XVxSKgdZX/nmrhhURGoEJxDjtGv/C+wcHphVY4r7qX2T7+617uAH+X AXRTQbGYNZWlqEKfuskb8+Qa5VpmSw7Opb0+2fc1kjmvZ2U2vVXorLMxi r3XS9yxpJKxe4fjImmIrpMVCKQLExTdjmQ1DKep6URG7EzRUFN66v0VIn A==; X-IronPort-AV: E=McAfee;i="6200,9189,10230"; a="308058284" X-IronPort-AV: E=Sophos;i="5.88,296,1635231600"; d="scan'208";a="308058284" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Jan 2022 18:02:59 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,296,1635231600"; d="scan'208";a="693233113" Received: from lkp-server01.sh.intel.com (HELO 276f1b88eecb) ([10.239.97.150]) by orsmga005.jf.intel.com with ESMTP; 17 Jan 2022 18:02:57 -0800 Received: from kbuild by 276f1b88eecb with local (Exim 4.92) (envelope-from ) id 1n9dpo-000C3K-N6; Tue, 18 Jan 2022 02:02:56 +0000 Date: Tue, 18 Jan 2022 10:02:00 +0800 From: kernel test robot To: Will Deacon Cc: kbuild-all@lists.01.org, GNU/Weeb Mailing List , linux-kernel@vger.kernel.org, Ard Biesheuvel Subject: [ammarfaizi2-block:google/android/kernel/common/android13-5.15 2757/2766] arch/arm64/kvm/arm.c:2011:46: error: 'smccc_trng_available' undeclared Message-ID: <202201181042.DbgIXpRm-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 tree: https://github.com/ammarfaizi2/linux-block google/android/kernel/common/android13-5.15 head: 9c25e5d6f58362a8ff78327664a2e3c2a538009f commit: 888643ea37b504cb32afdd6430698d1e92a79a71 [2757/2766] ANDROID: KVM: arm64: relay entropy requests from protected guests directly to secure config: arm64-buildonly-randconfig-r006-20220116 (https://download.01.org/0day-ci/archive/20220118/202201181042.DbgIXpRm-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/888643ea37b504cb32afdd6430698d1e92a79a71 git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block git fetch --no-tags ammarfaizi2-block google/android/kernel/common/android13-5.15 git checkout 888643ea37b504cb32afdd6430698d1e92a79a71 # 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 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/arm.c: In function 'kvm_hyp_init_protection': >> arch/arm64/kvm/arm.c:2011:46: error: 'smccc_trng_available' undeclared (first use in this function) 2011 | kvm_nvhe_sym(smccc_trng_available) = smccc_trng_available; | ^~~~~~~~~~~~~~~~~~~~ arch/arm64/kvm/arm.c:2011:46: note: each undeclared identifier is reported only once for each function it appears in vim +/smccc_trng_available +2011 arch/arm64/kvm/arm.c 1997 1998 static int kvm_hyp_init_protection(u32 hyp_va_bits) 1999 { 2000 void *addr = phys_to_virt(hyp_mem_base); 2001 int ret; 2002 2003 kvm_nvhe_sym(id_aa64pfr0_el1_sys_val) = read_sanitised_ftr_reg(SYS_ID_AA64PFR0_EL1); 2004 kvm_nvhe_sym(id_aa64pfr1_el1_sys_val) = read_sanitised_ftr_reg(SYS_ID_AA64PFR1_EL1); 2005 kvm_nvhe_sym(id_aa64isar0_el1_sys_val) = read_sanitised_ftr_reg(SYS_ID_AA64ISAR0_EL1); 2006 kvm_nvhe_sym(id_aa64isar1_el1_sys_val) = read_sanitised_ftr_reg(SYS_ID_AA64ISAR1_EL1); 2007 kvm_nvhe_sym(id_aa64mmfr0_el1_sys_val) = read_sanitised_ftr_reg(SYS_ID_AA64MMFR0_EL1); 2008 kvm_nvhe_sym(id_aa64mmfr1_el1_sys_val) = read_sanitised_ftr_reg(SYS_ID_AA64MMFR1_EL1); 2009 kvm_nvhe_sym(id_aa64mmfr2_el1_sys_val) = read_sanitised_ftr_reg(SYS_ID_AA64MMFR2_EL1); 2010 kvm_nvhe_sym(__icache_flags) = __icache_flags; > 2011 kvm_nvhe_sym(smccc_trng_available) = smccc_trng_available; 2012 2013 ret = create_hyp_mappings(addr, addr + hyp_mem_size, PAGE_HYP); 2014 if (ret) 2015 return ret; 2016 2017 ret = init_stage2_iommu(); 2018 if (ret < 0) 2019 return ret; 2020 2021 ret = do_pkvm_init(hyp_va_bits, (enum kvm_iommu_driver)ret); 2022 if (ret) 2023 return ret; 2024 2025 free_hyp_pgds(); 2026 2027 return 0; 2028 } 2029 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org