linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: Marc Zyngier <maz@kernel.org>
To: kernel test robot <lkp@intel.com>
Cc: kbuild-all@lists.01.org, Jianyong Wu <jianyong.wu@arm.com>,
	Will Deacon <will@kernel.org>,
	linux-arm-kernel@lists.infradead.org,
	clang-built-linux@googlegroups.com
Subject: Re: [arm-platforms:kvm-arm64/ptp 1/7] drivers/firmware/smccc/kvm_guest.c:12:13: warning: no previous prototype for function 'kvm_init_hyp_services'
Date: Wed, 03 Feb 2021 09:27:04 +0000	[thread overview]
Message-ID: <c87d2ce394cdaabb0874d8614837c586@kernel.org> (raw)
In-Reply-To: <202102030600.pWU6P0hf-lkp@intel.com>

On 2021-02-02 22:55, kernel test robot wrote:
> tree:
> https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git
> kvm-arm64/ptp
> head:   fecd9f021d3220b48d00597bd8e04e4fa6fd9dee
> commit: 0f90140a1f02cefb2ce98a94d7f01f5892b95fc2 [1/7] arm/arm64:
> Probe for the presence of KVM hypervisor
> config: arm64-randconfig-r032-20210202 (attached as .config)
> compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project
> 275c6af7d7f1ed63a03d05b4484413e447133269)
> 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/maz/arm-platforms.git/commit/?id=0f90140a1f02cefb2ce98a94d7f01f5892b95fc2
>         git remote add arm-platforms
> https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git
>         git fetch --no-tags arm-platforms kvm-arm64/ptp
>         git checkout 0f90140a1f02cefb2ce98a94d7f01f5892b95fc2
>         # 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 <lkp@intel.com>
> 
> All warnings (new ones prefixed by >>):
> 
>>> drivers/firmware/smccc/kvm_guest.c:12:13: warning: no previous 
>>> prototype for function 'kvm_init_hyp_services' [-Wmissing-prototypes]
>    void __init kvm_init_hyp_services(void)
>                ^
>    drivers/firmware/smccc/kvm_guest.c:12:1: note: declare 'static' if
> the function is not intended to be used outside of this translation
> unit
>    void __init kvm_init_hyp_services(void)
>    ^
>    static
>>> drivers/firmware/smccc/kvm_guest.c:44:6: warning: no previous 
>>> prototype for function 'kvm_arm_hyp_service_available' 
>>> [-Wmissing-prototypes]
>    bool kvm_arm_hyp_service_available(u32 func_id)
>         ^
>    drivers/firmware/smccc/kvm_guest.c:44:1: note: declare 'static' if
> the function is not intended to be used outside of this translation
> unit
>    bool kvm_arm_hyp_service_available(u32 func_id)
>    ^
>    static
>    2 warnings generated.
> 

Now fixed with an include of <asm/hypervisor.h>

            M.
-- 
Jazz is not dead. It just smells funny...

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

      reply	other threads:[~2021-02-03  9:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-02 22:55 [arm-platforms:kvm-arm64/ptp 1/7] drivers/firmware/smccc/kvm_guest.c:12:13: warning: no previous prototype for function 'kvm_init_hyp_services' kernel test robot
2021-02-03  9:27 ` Marc Zyngier [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c87d2ce394cdaabb0874d8614837c586@kernel.org \
    --to=maz@kernel.org \
    --cc=clang-built-linux@googlegroups.com \
    --cc=jianyong.wu@arm.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=lkp@intel.com \
    --cc=will@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).