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 92E29C433EF for ; Fri, 11 Mar 2022 08:07:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347370AbiCKIHr (ORCPT ); Fri, 11 Mar 2022 03:07:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347339AbiCKIHn (ORCPT ); Fri, 11 Mar 2022 03:07:43 -0500 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 54C121B8C93 for ; Fri, 11 Mar 2022 00:06:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1646985999; x=1678521999; h=date:from:to:cc:subject:message-id:mime-version; bh=GTyKozF/D2v7CM54enDSTVCx4w8CPMOvs00slp4xkgM=; b=DSXTJwUrFy5ApEnn1tomDAoSkMPAd8HQaE0R8H62ybd9LRIQP5h8znqm 0Y9xLlROBXL60jcEqMUQVMv5mTwG5I70nsEFBdFUfGboxlxM6u0+vpkC0 QpAl9CgYZZhqt3pLhl8R353lmEPwqMc9UUlU35rf/IXtvisdOMmtwvRiJ V7wbkE6K09BpZT/HWdR1NS9D8bspaHA2EBUOungeO//juPQKdBYWExZQ0 TDxhLH2oRviS8L6LbXS/5gGP8nIyJXYx1DKO9UfM4/FFWKr4Onk+UKnHK tXgJQZgRzQR/E4HFvMyoD999JxkI1auginC5LJPGXdTTds1gbgq+prRtD A==; X-IronPort-AV: E=McAfee;i="6200,9189,10282"; a="236128247" X-IronPort-AV: E=Sophos;i="5.90,173,1643702400"; d="scan'208";a="236128247" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Mar 2022 00:06:38 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,173,1643702400"; d="scan'208";a="514423909" Received: from lkp-server02.sh.intel.com (HELO 89b41b6ae01c) ([10.239.97.151]) by orsmga006.jf.intel.com with ESMTP; 11 Mar 2022 00:06:37 -0800 Received: from kbuild by 89b41b6ae01c with local (Exim 4.92) (envelope-from ) id 1nSaIG-00065K-DV; Fri, 11 Mar 2022 08:06:36 +0000 Date: Fri, 11 Mar 2022 16:05:35 +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 2786/4732] arch/arm64/kvm/arm.c:2011:46: error: 'smccc_trng_available' undeclared Message-ID: <202203111548.gUwWECDs-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 Will, FYI, the error/warning still remains. tree: https://github.com/ammarfaizi2/linux-block google/android/kernel/common/android13-5.15 head: a733d4b8db7589d12249cbb282108a2ff8b6e08c commit: 888643ea37b504cb32afdd6430698d1e92a79a71 [2786/4732] ANDROID: KVM: arm64: relay entropy requests from protected guests directly to secure config: arm64-randconfig-r003-20220217 (https://download.01.org/0day-ci/archive/20220311/202203111548.gUwWECDs-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 https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org