[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'

Marc Zyngier maz at kernel.org
Wed Feb 3 04:27:04 EST 2021


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 at 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...



More information about the linux-arm-kernel mailing list