[arm64:for-next/fixes 3/5] arch/arm64/kvm/hyp/vhe/switch.c:221:17: warning: no previous prototype for 'kvm_unexpected_el2_exception'

Catalin Marinas catalin.marinas at arm.com
Sat Aug 29 06:30:50 EDT 2020


On Sat, Aug 29, 2020 at 04:55:41AM +0800, kernel test robot wrote:
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-next/fixes
> head:   71a7f8cb1ca4ca7214a700b1243626759b6c11d4
> commit: e9ee186bb735bfc17fa81dbc9aebf268aee5b41e [3/5] KVM: arm64: Add kvm_extable for vaxorcism code
> config: arm64-defconfig (attached as .config)
> compiler: aarch64-linux-gcc (GCC) 9.3.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
>         git checkout e9ee186bb735bfc17fa81dbc9aebf268aee5b41e
>         # save the attached .config to linux build tree
>         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 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 >>):
> 
> >> arch/arm64/kvm/hyp/vhe/switch.c:221:17: warning: no previous prototype for 'kvm_unexpected_el2_exception' [-Wmissing-prototypes]
>      221 | asmlinkage void kvm_unexpected_el2_exception(void)
>          |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
> --
> >> arch/arm64/kvm/hyp/nvhe/switch.c:274:17: warning: no previous prototype for 'kvm_unexpected_el2_exception' [-Wmissing-prototypes]
>      274 | asmlinkage void kvm_unexpected_el2_exception(void)
>          |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~

We can ignore these. We don't need a prototype as they are called from
assembly only.

-- 
Catalin



More information about the linux-arm-kernel mailing list