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 X-Spam-Level: X-Spam-Status: No, score=-9.0 required=3.0 tests=BAYES_00,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 36DFBC433FE for ; Thu, 10 Dec 2020 09:38:09 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id A0B2223BAB for ; Thu, 10 Dec 2020 09:38:08 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A0B2223BAB Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 99E7E6B0068; Thu, 10 Dec 2020 04:38:07 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 928CD6B006C; Thu, 10 Dec 2020 04:38:07 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7EEEF6B006E; Thu, 10 Dec 2020 04:38:07 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0221.hostedemail.com [216.40.44.221]) by kanga.kvack.org (Postfix) with ESMTP id 6C20C6B0068 for ; Thu, 10 Dec 2020 04:38:07 -0500 (EST) Received: from smtpin27.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id 4A0BE117FE for ; Thu, 10 Dec 2020 09:38:07 +0000 (UTC) X-FDA: 77576871414.27.can09_59117b2273f7 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin27.hostedemail.com (Postfix) with ESMTP id 28F8A3D663 for ; Thu, 10 Dec 2020 09:38:07 +0000 (UTC) X-HE-Tag: can09_59117b2273f7 X-Filterd-Recvd-Size: 4994 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf15.hostedemail.com (Postfix) with ESMTP for ; Thu, 10 Dec 2020 09:38:06 +0000 (UTC) Received: from disco-boy.misterjones.org (disco-boy.misterjones.org [51.254.78.96]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5C7F923B70; Thu, 10 Dec 2020 09:38:05 +0000 (UTC) Received: from disco-boy.misterjones.org ([51.254.78.96] helo=www.loen.fr) by disco-boy.misterjones.org with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94) (envelope-from ) id 1knIOh-0002BC-Bq; Thu, 10 Dec 2020 09:38:03 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 10 Dec 2020 09:38:03 +0000 From: Marc Zyngier To: kernel test robot Cc: David Brazdil , kbuild-all@lists.01.org, clang-built-linux@googlegroups.com, Linux Memory Management List Subject: Re: [linux-next:master 10163/12085] arch/arm64/kvm/hyp/nvhe/psci-relay.c:174:28: warning: no previous prototype for function 'kvm_host_psci_cpu_entry' In-Reply-To: <202012101752.oNGReKJM-lkp@intel.com> References: <202012101752.oNGReKJM-lkp@intel.com> User-Agent: Roundcube Webmail/1.4.9 Message-ID: <8d7aab68fd0d0a5d3ee1e99088e9a68e@kernel.org> X-Sender: maz@kernel.org X-SA-Exim-Connect-IP: 51.254.78.96 X-SA-Exim-Rcpt-To: lkp@intel.com, dbrazdil@google.com, kbuild-all@lists.01.org, clang-built-linux@googlegroups.com, linux-mm@kvack.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On 2020-12-10 09:24, kernel test robot wrote: > tree: > https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git > master > head: 2f1d5c77f13fe64497c2e2601605f7d7ec4da9b1 > commit: cdf367192766ad11a03e8d5098556be43b8eb6b0 [10163/12085] KVM: > arm64: Intercept host's CPU_ON SMCs > config: arm64-randconfig-r032-20201209 (attached as .config) > compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project > 1968804ac726e7674d5de22bc2204b45857da344) > 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 > # install arm64 cross compiling tool for clang build > # apt-get install binutils-aarch64-linux-gnu > # > https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=cdf367192766ad11a03e8d5098556be43b8eb6b0 > git remote add linux-next > https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git > git fetch --no-tags linux-next master > git checkout cdf367192766ad11a03e8d5098556be43b8eb6b0 > # save the attached .config to linux build tree > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross > 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:174:28: warning: no previous >>> prototype for function 'kvm_host_psci_cpu_entry' >>> [-Wmissing-prototypes] > asmlinkage void __noreturn kvm_host_psci_cpu_entry(bool is_cpu_on) > ^ > arch/arm64/kvm/hyp/nvhe/psci-relay.c:174:12: note: declare 'static' > if the function is not intended to be used outside of this translation > unit > asmlinkage void __noreturn kvm_host_psci_cpu_entry(bool is_cpu_on) > ^ > static > 1 warning generated. I wish someone would fix these reports and weed out these false positive. The function is annotated as asmlinkage, meaning it is called from some assembly code. Not amount of prototyping is going to help the assembler, and making it static is just going to break the build. Thanks, M. > > vim +/kvm_host_psci_cpu_entry +174 arch/arm64/kvm/hyp/nvhe/psci-relay.c > > 173 > > 174 asmlinkage void __noreturn kvm_host_psci_cpu_entry(bool > is_cpu_on) > 175 { > 176 struct psci_boot_args *boot_args; > 177 struct kvm_cpu_context *host_ctxt; > 178 > 179 host_ctxt = > &this_cpu_ptr(hyp_symbol_addr(kvm_host_data))->host_ctxt; > 180 boot_args = this_cpu_ptr(hyp_symbol_addr(cpu_on_args)); > 181 > 182 cpu_reg(host_ctxt, 0) = boot_args->r0; > 183 write_sysreg_el2(boot_args->pc, SYS_ELR); > 184 release_boot_args(boot_args); > 185 > 186 __host_enter(host_ctxt); > 187 } > 188 > > --- > 0-DAY CI Kernel Test Service, Intel Corporation > https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org -- Jazz is not dead. It just smells funny...