All of lore.kernel.org
 help / color / mirror / Atom feed
* [arm-platforms:kvm-arm64/pmu-bl 4/5] arch/arm64/kvm/pmu-emul.c:895:24: error: use of undeclared identifier 'kvm'
@ 2022-01-03 18:39 ` kernel test robot
  0 siblings, 0 replies; 6+ messages in thread
From: kernel test robot @ 2022-01-03 18:39 UTC (permalink / raw)
  To: Alexandru Elisei; +Cc: llvm, kbuild-all, linux-arm-kernel, Marc Zyngier

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [arm-platforms:kvm-arm64/pmu-bl 4/5] arch/arm64/kvm/pmu-emul.c:895:24: error: use of undeclared identifier 'kvm'
@ 2022-01-03 18:39 ` kernel test robot
  0 siblings, 0 replies; 6+ messages in thread
From: kernel test robot @ 2022-01-03 18:39 UTC (permalink / raw)
  To: Alexandru Elisei; +Cc: llvm, kbuild-all, linux-arm-kernel, Marc Zyngier

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [arm-platforms:kvm-arm64/pmu-bl 4/5] arch/arm64/kvm/pmu-emul.c:895:24: error: use of undeclared identifier 'kvm'
@ 2022-01-03 18:39 ` kernel test robot
  0 siblings, 0 replies; 6+ messages in thread
From: kernel test robot @ 2022-01-03 18:39 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 3369 bytes --]

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(a)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(a)lists.01.org

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [arm-platforms:kvm-arm64/pmu-bl 4/5] arch/arm64/kvm/pmu-emul.c:895:24: error: use of undeclared identifier 'kvm'
  2022-01-03 18:39 ` kernel test robot
  (?)
@ 2022-01-03 19:22   ` Marc Zyngier
  -1 siblings, 0 replies; 6+ messages in thread
From: Marc Zyngier @ 2022-01-03 19:22 UTC (permalink / raw)
  To: kernel test robot; +Cc: Alexandru Elisei, llvm, kbuild-all, linux-arm-kernel

On 2022-01-03 18:39, kernel test robot wrote:
> 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)) {

Fixed branch pushed out, thanks for the heads up.

         M.
-- 
Jazz is not dead. It just smells funny...

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [arm-platforms:kvm-arm64/pmu-bl 4/5] arch/arm64/kvm/pmu-emul.c:895:24: error: use of undeclared identifier 'kvm'
@ 2022-01-03 19:22   ` Marc Zyngier
  0 siblings, 0 replies; 6+ messages in thread
From: Marc Zyngier @ 2022-01-03 19:22 UTC (permalink / raw)
  To: kernel test robot; +Cc: Alexandru Elisei, llvm, kbuild-all, linux-arm-kernel

On 2022-01-03 18:39, kernel test robot wrote:
> 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)) {

Fixed branch pushed out, thanks for the heads up.

         M.
-- 
Jazz is not dead. It just smells funny...

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [arm-platforms:kvm-arm64/pmu-bl 4/5] arch/arm64/kvm/pmu-emul.c:895:24: error: use of undeclared identifier 'kvm'
@ 2022-01-03 19:22   ` Marc Zyngier
  0 siblings, 0 replies; 6+ messages in thread
From: Marc Zyngier @ 2022-01-03 19:22 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 1886 bytes --]

On 2022-01-03 18:39, kernel test robot wrote:
> 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(a)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)) {

Fixed branch pushed out, thanks for the heads up.

         M.
-- 
Jazz is not dead. It just smells funny...

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-01-03 19:23 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-03 18:39 [arm-platforms:kvm-arm64/pmu-bl 4/5] arch/arm64/kvm/pmu-emul.c:895:24: error: use of undeclared identifier 'kvm' kernel test robot
2022-01-03 18:39 ` kernel test robot
2022-01-03 18:39 ` kernel test robot
2022-01-03 19:22 ` Marc Zyngier
2022-01-03 19:22   ` Marc Zyngier
2022-01-03 19:22   ` Marc Zyngier

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.