linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Alexandru Elisei <alexandru.elisei@arm.com>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
	linux-arm-kernel@lists.infradead.org,
	Marc Zyngier <maz@kernel.org>
Subject: [arm-platforms:kvm-arm64/pmu-bl 4/5] arch/arm64/kvm/pmu-emul.c:895:24: error: use of undeclared identifier 'kvm'
Date: Tue, 4 Jan 2022 02:39:22 +0800	[thread overview]
Message-ID: <202201040228.xRreWFaE-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git kvm-arm64/pmu-bl
head:   877a6850e9bc0d29fa60dbedf345300c0f3396e4
commit: 0071239cd4ab9fc0b5cb9b911b36adee31598f3f [4/5] KVM: arm64: Add KVM_ARM_VCPU_PMU_V3_SET_PMU attribute
config: arm64-randconfig-r013-20220103 (https://download.01.org/0day-ci/archive/20220104/202201040228.xRreWFaE-lkp@intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 104a827ea6de0cbe0f5faef4407552ede31d165c)
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=0071239cd4ab9fc0b5cb9b911b36adee31598f3f
        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-bl
        git checkout 0071239cd4ab9fc0b5cb9b911b36adee31598f3f
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash arch/arm64/kvm/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

>> arch/arm64/kvm/pmu-emul.c:895:24: error: use of undeclared identifier 'kvm'
           if (irqchip_in_kernel(kvm)) {
                                 ^
   arch/arm64/kvm/pmu-emul.c:903:25: error: use of undeclared identifier 'kvm'
                   if (!vgic_initialized(kvm))
                                         ^
>> arch/arm64/kvm/pmu-emul.c:906:8: error: no member named 'pmu' in 'struct kvm_arch'
                   if (!kvm_arm_pmu_irq_initialized(vcpu->kvm))
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/kvm/arm_pmu.h:45:51: note: expanded from macro 'kvm_arm_pmu_irq_initialized'
   #define kvm_arm_pmu_irq_initialized(v)  ((v)->arch.pmu.irq_num >= VGIC_NR_SGIS)
                                            ~~~~~~~~~ ^
   3 errors generated.


vim +/kvm +895 arch/arm64/kvm/pmu-emul.c

   892	
   893	static int kvm_arm_pmu_v3_init(struct kvm_vcpu *vcpu)
   894	{
 > 895		if (irqchip_in_kernel(kvm)) {
   896			int ret;
   897	
   898			/*
   899			 * If using the PMU with an in-kernel virtual GIC
   900			 * implementation, we require the GIC to be already
   901			 * initialized when initializing the PMU.
   902			 */
   903			if (!vgic_initialized(kvm))
   904				return -ENODEV;
   905	
 > 906			if (!kvm_arm_pmu_irq_initialized(vcpu->kvm))
   907				return -ENXIO;
   908	
   909			ret = kvm_vgic_set_owner(vcpu, vcpu->arch.pmu.irq_num,
   910						 &vcpu->arch.pmu);
   911			if (ret)
   912				return ret;
   913		}
   914	
   915		init_irq_work(&vcpu->arch.pmu.overflow_work,
   916			      kvm_pmu_perf_overflow_notify_vcpu);
   917	
   918		atomic_set(&vcpu->arch.pmu.created, 1);
   919	
   920		return 0;
   921	}
   922	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

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

             reply	other threads:[~2022-01-03 18:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-03 18:39 kernel test robot [this message]
2022-01-03 19:22 ` [arm-platforms:kvm-arm64/pmu-bl 4/5] arch/arm64/kvm/pmu-emul.c:895:24: error: use of undeclared identifier 'kvm' Marc Zyngier

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=202201040228.xRreWFaE-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=alexandru.elisei@arm.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=llvm@lists.linux.dev \
    --cc=maz@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).