arch/powerpc/kvm/book3s_hv_rm_xics.c:482:15: error: no previous prototype for 'xics_rm_h_xirr_x'

From: kernel test robot
Date: Fri Jun 03 2022 - 20:18:59 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 744983d8784214c4f184be7448efb216315b48ae
commit: b22af9041927075b82bcaf4b6c7a354688198d47 KVM: PPC: Book3s: Remove real mode interrupt controller hcalls handlers
date: 2 weeks ago
config: powerpc64-defconfig (https://download.01.org/0day-ci/archive/20220604/202206040816.UN8BBdUf-lkp@xxxxxxxxx/config)
compiler: powerpc64-linux-gcc (GCC) 11.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
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=b22af9041927075b82bcaf4b6c7a354688198d47
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout b22af9041927075b82bcaf4b6c7a354688198d47
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross W=1 O=build_dir ARCH=powerpc SHELL=/bin/bash arch/powerpc/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

>> arch/powerpc/kvm/book3s_hv_rm_xics.c:482:15: error: no previous prototype for 'xics_rm_h_xirr_x' [-Werror=missing-prototypes]
482 | unsigned long xics_rm_h_xirr_x(struct kvm_vcpu *vcpu)
| ^~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors


vim +/xics_rm_h_xirr_x +482 arch/powerpc/kvm/book3s_hv_rm_xics.c

481
> 482 unsigned long xics_rm_h_xirr_x(struct kvm_vcpu *vcpu)
483 {
484 vcpu->arch.regs.gpr[5] = get_tb();
485 return xics_rm_h_xirr(vcpu);
486 }
487

--
0-DAY CI Kernel Test Service
https://01.org/lkp