[arm-platforms:kvm-arm64/pmu-event-filter 4/5] arch/arm64/kvm/sys_regs.c:772:11: error: implicit declaration of function 'kvm_pmu_get_pmceid'

kernel test robot lkp at intel.com
Tue Sep 1 12:11:14 EDT 2020


tree:   https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git kvm-arm64/pmu-event-filter
head:   37f49ef9193707930ce484c9adabe8e586a163a0
commit: f55147a38bcded5c30c5ce6a0bd8b3973bbdb073 [4/5] KVM: arm64: Mask out filtered events in PCMEID{0,1}_EL1
config: arm64-randconfig-r036-20200901 (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 f55147a38bcded5c30c5ce6a0bd8b3973bbdb073
        # 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 errors (new ones prefixed by >>):

   arch/arm64/kvm/sys_regs.c: In function 'access_pmceid':
>> arch/arm64/kvm/sys_regs.c:772:11: error: implicit declaration of function 'kvm_pmu_get_pmceid' [-Werror=implicit-function-declaration]
     772 |  pmceid = kvm_pmu_get_pmceid(vcpu, (p->Op2 & 1));
         |           ^~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors

# https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git/commit/?id=f55147a38bcded5c30c5ce6a0bd8b3973bbdb073
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/pmu-event-filter
git checkout f55147a38bcded5c30c5ce6a0bd8b3973bbdb073
vim +/kvm_pmu_get_pmceid +772 arch/arm64/kvm/sys_regs.c

   758	
   759	static bool access_pmceid(struct kvm_vcpu *vcpu, struct sys_reg_params *p,
   760				  const struct sys_reg_desc *r)
   761	{
   762		u64 pmceid;
   763	
   764		if (!kvm_arm_pmu_v3_ready(vcpu))
   765			return trap_raz_wi(vcpu, p, r);
   766	
   767		BUG_ON(p->is_write);
   768	
   769		if (pmu_access_el0_disabled(vcpu))
   770			return false;
   771	
 > 772		pmceid = kvm_pmu_get_pmceid(vcpu, (p->Op2 & 1));
   773	
   774		p->regval = pmceid;
   775	
   776		return true;
   777	}
   778	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 35312 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20200902/7a3c87ed/attachment-0001.gz>


More information about the linux-arm-kernel mailing list