From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-3.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by gnuweeb.org (Postfix) with ESMTPS id 28CEC7E70A for ; Mon, 28 Mar 2022 19:12:45 +0000 (UTC) Authentication-Results: gnuweeb.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=W67tbRnm; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1648494765; x=1680030765; h=date:from:to:cc:subject:message-id:mime-version; bh=DdkMnQt+3cK1i7RyJqY8kdWoHo4RGsdW+SLLoGJFSwA=; b=W67tbRnmIwF06RxbBHfL8NVKuPhxZOY3VGcAMtpbskblK9UqrZMPzXrR Oq57pWA1p1u21u0xTwKqo9+ZsPOPjT4xvOejRsqwokMsujxfPR6BVNPk6 bt3zJVDLvF+xVkiyemYbrOqHmGKMRFHZpe/5SknptKzwZ72AOJNWT+zLy +VzWqiXrWg2pGv8CdJ4rfGIyBLcGEIeD6Ti8MleRODsn+SoYH7b0lO36Y hNFof7TKNQjbxCIO7orntITkmYuFmqcrIyZHBxBASDfDiu+zgFC0Nm8TM nmZoqrXPUasGJ62z8VXd2QOcn3czLEaeW7V94NLs/KG/XdY913Xiyo5ae A==; X-IronPort-AV: E=McAfee;i="6200,9189,10300"; a="345520472" X-IronPort-AV: E=Sophos;i="5.90,218,1643702400"; d="scan'208";a="345520472" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Mar 2022 12:12:44 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,218,1643702400"; d="scan'208";a="502627407" Received: from lkp-server02.sh.intel.com (HELO 89b41b6ae01c) ([10.239.97.151]) by orsmga003.jf.intel.com with ESMTP; 28 Mar 2022 12:12:42 -0700 Received: from kbuild by 89b41b6ae01c with local (Exim 4.92) (envelope-from ) id 1nYunC-0002Fs-61; Mon, 28 Mar 2022 19:12:42 +0000 Date: Tue, 29 Mar 2022 03:12:33 +0800 From: kernel test robot To: Will Deacon Cc: kbuild-all@lists.01.org, GNU/Weeb Mailing List , linux-kernel@vger.kernel.org Subject: [ammarfaizi2-block:google/android/kernel/common/android13-5.15 5561/5564] arch/arm64/kvm/hyp/nvhe/psci-relay.c:249:6: warning: no previous prototype for 'psci_mem_protect_inc' Message-ID: <202203290356.y3LU3iyb-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) List-Id: tree: https://github.com/ammarfaizi2/linux-block google/android/kernel/common/android13-5.15 head: 2692f0f6f17ff8ec82ffbcdf2e151249768724a2 commit: 4347917056dadaf7856cce8312eb1c55e1372a2a [5561/5564] ANDROID: KVM: arm64: Use PSCI MEM_PROTECT to zap guest pages on reset config: arm64-defconfig (https://download.01.org/0day-ci/archive/20220329/202203290356.y3LU3iyb-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/4347917056dadaf7856cce8312eb1c55e1372a2a 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 4347917056dadaf7856cce8312eb1c55e1372a2a # 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/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): arch/arm64/kvm/hyp/nvhe/psci-relay.c:204:28: warning: no previous prototype for 'kvm_host_psci_cpu_entry' [-Wmissing-prototypes] 204 | asmlinkage void __noreturn kvm_host_psci_cpu_entry(bool is_cpu_on) | ^~~~~~~~~~~~~~~~~~~~~~~ >> arch/arm64/kvm/hyp/nvhe/psci-relay.c:249:6: warning: no previous prototype for 'psci_mem_protect_inc' [-Wmissing-prototypes] 249 | void psci_mem_protect_inc(void) | ^~~~~~~~~~~~~~~~~~~~ >> arch/arm64/kvm/hyp/nvhe/psci-relay.c:256:6: warning: no previous prototype for 'psci_mem_protect_dec' [-Wmissing-prototypes] 256 | void psci_mem_protect_dec(void) | ^~~~~~~~~~~~~~~~~~~~ vim +/psci_mem_protect_inc +249 arch/arm64/kvm/hyp/nvhe/psci-relay.c 203 > 204 asmlinkage void __noreturn kvm_host_psci_cpu_entry(bool is_cpu_on) 205 { 206 struct psci_boot_args *boot_args; 207 struct kvm_cpu_context *host_ctxt; 208 209 host_ctxt = &this_cpu_ptr(&kvm_host_data)->host_ctxt; 210 211 if (is_cpu_on) 212 boot_args = this_cpu_ptr(&cpu_on_args); 213 else 214 boot_args = this_cpu_ptr(&suspend_args); 215 216 cpu_reg(host_ctxt, 0) = boot_args->r0; 217 write_sysreg_el2(boot_args->pc, SYS_ELR); 218 219 if (is_cpu_on) 220 release_boot_args(boot_args); 221 222 __host_enter(host_ctxt); 223 } 224 225 static DEFINE_HYP_SPINLOCK(mem_protect_lock); 226 227 static u64 psci_mem_protect(s64 offset) 228 { 229 static u64 cnt; 230 u64 new = cnt + offset; 231 232 hyp_assert_lock_held(&mem_protect_lock); 233 234 if (!offset || kvm_host_psci_config.version < PSCI_VERSION(1, 1)) 235 return cnt; 236 237 if (!cnt || !new) 238 psci_call(PSCI_1_1_FN64_MEM_PROTECT, offset < 0 ? 0 : 1, 0, 0); 239 240 cnt = new; 241 return cnt; 242 } 243 244 static bool psci_mem_protect_active(void) 245 { 246 return psci_mem_protect(0); 247 } 248 > 249 void psci_mem_protect_inc(void) 250 { 251 hyp_spin_lock(&mem_protect_lock); 252 psci_mem_protect(1); 253 hyp_spin_unlock(&mem_protect_lock); 254 } 255 > 256 void psci_mem_protect_dec(void) 257 { 258 hyp_spin_lock(&mem_protect_lock); 259 psci_mem_protect(-1); 260 hyp_spin_unlock(&mem_protect_lock); 261 } 262 -- 0-DAY CI Kernel Test Service https://01.org/lkp