public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [kvm:next 27/32] arch/arm64/kvm/psci.c:184:32: error: 'struct <anonymous>' has no member named 'flags'
@ 2022-04-15 20:50 kernel test robot
  2022-04-16  3:14 ` Sean Christopherson
  0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2022-04-15 20:50 UTC (permalink / raw)
  To: Peter Gonda
  Cc: kbuild-all, kvm, Robert Hu, Farrah Chen, Danmei Wei,
	Paolo Bonzini

tree:   https://git.kernel.org/pub/scm/virt/kvm/kvm.git next
head:   5d6c7de6446e9ab3fb41d6f7d82770e50998f3de
commit: c24a950ec7d60c4da91dc3f273295c7f438b531e [27/32] KVM, SEV: Add KVM_EXIT_SHUTDOWN metadata for SEV-ES
config: arm64-allyesconfig (https://download.01.org/0day-ci/archive/20220416/202204160436.TdR8eFO0-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 11.2.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/virt/kvm/kvm.git/commit/?id=c24a950ec7d60c4da91dc3f273295c7f438b531e
        git remote add kvm https://git.kernel.org/pub/scm/virt/kvm/kvm.git
        git fetch --no-tags kvm next
        git checkout c24a950ec7d60c4da91dc3f273295c7f438b531e
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arm64 SHELL=/bin/bash

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/psci.c: In function 'kvm_prepare_system_event':
>> arch/arm64/kvm/psci.c:184:32: error: 'struct <anonymous>' has no member named 'flags'
     184 |         vcpu->run->system_event.flags = flags;
         |                                ^


vim +184 arch/arm64/kvm/psci.c

e6bc13c8a70eab arch/arm/kvm/psci.c   Anup Patel       2014-04-29  163  
34739fd95fab3a arch/arm64/kvm/psci.c Will Deacon      2022-02-21  164  static void kvm_prepare_system_event(struct kvm_vcpu *vcpu, u32 type, u64 flags)
4b1238269ed340 arch/arm/kvm/psci.c   Anup Patel       2014-04-29  165  {
46808a4cb89708 arch/arm64/kvm/psci.c Marc Zyngier     2021-11-16  166  	unsigned long i;
cf5d318865e25f arch/arm/kvm/psci.c   Christoffer Dall 2014-10-16  167  	struct kvm_vcpu *tmp;
cf5d318865e25f arch/arm/kvm/psci.c   Christoffer Dall 2014-10-16  168  
cf5d318865e25f arch/arm/kvm/psci.c   Christoffer Dall 2014-10-16  169  	/*
cf5d318865e25f arch/arm/kvm/psci.c   Christoffer Dall 2014-10-16  170  	 * The KVM ABI specifies that a system event exit may call KVM_RUN
cf5d318865e25f arch/arm/kvm/psci.c   Christoffer Dall 2014-10-16  171  	 * again and may perform shutdown/reboot at a later time that when the
cf5d318865e25f arch/arm/kvm/psci.c   Christoffer Dall 2014-10-16  172  	 * actual request is made.  Since we are implementing PSCI and a
cf5d318865e25f arch/arm/kvm/psci.c   Christoffer Dall 2014-10-16  173  	 * caller of PSCI reboot and shutdown expects that the system shuts
cf5d318865e25f arch/arm/kvm/psci.c   Christoffer Dall 2014-10-16  174  	 * down or reboots immediately, let's make sure that VCPUs are not run
cf5d318865e25f arch/arm/kvm/psci.c   Christoffer Dall 2014-10-16  175  	 * after this call is handled and before the VCPUs have been
cf5d318865e25f arch/arm/kvm/psci.c   Christoffer Dall 2014-10-16  176  	 * re-initialized.
cf5d318865e25f arch/arm/kvm/psci.c   Christoffer Dall 2014-10-16  177  	 */
cc9b43f99d5ff4 virt/kvm/arm/psci.c   Andrew Jones     2017-06-04  178  	kvm_for_each_vcpu(i, tmp, vcpu->kvm)
3781528e3045e7 arch/arm/kvm/psci.c   Eric Auger       2015-09-25  179  		tmp->arch.power_off = true;
7b244e2be654d9 virt/kvm/arm/psci.c   Andrew Jones     2017-06-04  180  	kvm_make_all_cpus_request(vcpu->kvm, KVM_REQ_SLEEP);
cf5d318865e25f arch/arm/kvm/psci.c   Christoffer Dall 2014-10-16  181  
4b1238269ed340 arch/arm/kvm/psci.c   Anup Patel       2014-04-29  182  	memset(&vcpu->run->system_event, 0, sizeof(vcpu->run->system_event));
4b1238269ed340 arch/arm/kvm/psci.c   Anup Patel       2014-04-29  183  	vcpu->run->system_event.type = type;
34739fd95fab3a arch/arm64/kvm/psci.c Will Deacon      2022-02-21 @184  	vcpu->run->system_event.flags = flags;
4b1238269ed340 arch/arm/kvm/psci.c   Anup Patel       2014-04-29  185  	vcpu->run->exit_reason = KVM_EXIT_SYSTEM_EVENT;
4b1238269ed340 arch/arm/kvm/psci.c   Anup Patel       2014-04-29  186  }
4b1238269ed340 arch/arm/kvm/psci.c   Anup Patel       2014-04-29  187  

:::::: The code at line 184 was first introduced by commit
:::::: 34739fd95fab3a5efb0422e4f012b685e33598dc KVM: arm64: Indicate SYSTEM_RESET2 in kvm_run::system_event flags field

:::::: TO: Will Deacon <will@kernel.org>
:::::: CC: Marc Zyngier <maz@kernel.org>

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

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

* Re: [kvm:next 27/32] arch/arm64/kvm/psci.c:184:32: error: 'struct <anonymous>' has no member named 'flags'
  2022-04-15 20:50 [kvm:next 27/32] arch/arm64/kvm/psci.c:184:32: error: 'struct <anonymous>' has no member named 'flags' kernel test robot
@ 2022-04-16  3:14 ` Sean Christopherson
  0 siblings, 0 replies; 2+ messages in thread
From: Sean Christopherson @ 2022-04-16  3:14 UTC (permalink / raw)
  To: kernel test robot
  Cc: Peter Gonda, kbuild-all, kvm, Robert Hu, Farrah Chen, Danmei Wei,
	Paolo Bonzini

On Sat, Apr 16, 2022, kernel test robot wrote:
> tree:   https://git.kernel.org/pub/scm/virt/kvm/kvm.git next
> head:   5d6c7de6446e9ab3fb41d6f7d82770e50998f3de
> commit: c24a950ec7d60c4da91dc3f273295c7f438b531e [27/32] KVM, SEV: Add KVM_EXIT_SHUTDOWN metadata for SEV-ES
> config: arm64-allyesconfig (https://download.01.org/0day-ci/archive/20220416/202204160436.TdR8eFO0-lkp@intel.com/config)
> compiler: aarch64-linux-gcc (GCC) 11.2.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/virt/kvm/kvm.git/commit/?id=c24a950ec7d60c4da91dc3f273295c7f438b531e
>         git remote add kvm https://git.kernel.org/pub/scm/virt/kvm/kvm.git
>         git fetch --no-tags kvm next
>         git checkout c24a950ec7d60c4da91dc3f273295c7f438b531e
>         # save the config file to linux build tree
>         mkdir build_dir
>         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arm64 SHELL=/bin/bash
> 
> 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/psci.c: In function 'kvm_prepare_system_event':
> >> arch/arm64/kvm/psci.c:184:32: error: 'struct <anonymous>' has no member named 'flags'
>      184 |         vcpu->run->system_event.flags = flags;
>          |                                ^

Known issue, WIP.  https://lore.kernel.org/all/YlisiF4BU6Uxe+iU@google.com

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

end of thread, other threads:[~2022-04-16  3:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-15 20:50 [kvm:next 27/32] arch/arm64/kvm/psci.c:184:32: error: 'struct <anonymous>' has no member named 'flags' kernel test robot
2022-04-16  3:14 ` Sean Christopherson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox