Hi Jordan,
[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on powerpc/next]
[also build test ERROR on v5.9-rc1 next-20200819]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url:
https://github.com/0day-ci/linux/commits/Jordan-Niethe/KVM-PPC-Use-the-pp...
base:
https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git next
config: powerpc64-randconfig-r025-20200818 (attached as .config)
compiler: powerpc-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
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=powerpc64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
arch/powerpc/kvm/booke.c:600:6: error: no previous prototype for
'kvmppc_watchdog_func' [-Werror=missing-prototypes]
600 | void kvmppc_watchdog_func(struct timer_list *t)
| ^~~~~~~~~~~~~~~~~~~~
arch/powerpc/kvm/booke.c: In function 'emulation_exit':
> arch/powerpc/kvm/booke.c:823:3: error: 'run' undeclared
(first use in this function)
823 | run->hw.hardware_exit_reason = ~0ULL
<< 32;
| ^~~
arch/powerpc/kvm/booke.c:823:3: note: each undeclared identifier is reported only once
for each function it appears in
arch/powerpc/kvm/booke.c: In function 'kvmppc_resume_inst_load':
arch/powerpc/kvm/booke.c:969:3: error: 'run' undeclared (first use in this
function)
969 | run->hw.hardware_exit_reason = ~0ULL << 32;
| ^~~
arch/powerpc/kvm/booke.c: At top level:
arch/powerpc/kvm/booke.c:984:5: error: no previous prototype for
'kvmppc_handle_exit' [-Werror=missing-prototypes]
984 | int kvmppc_handle_exit(struct kvm_vcpu *vcpu, unsigned int exit_nr)
| ^~~~~~~~~~~~~~~~~~
arch/powerpc/kvm/booke.c:1909:6: error: no previous prototype for
'kvm_guest_protect_msr' [-Werror=missing-prototypes]
1909 | void kvm_guest_protect_msr(struct kvm_vcpu *vcpu, ulong prot_bitmap, bool set)
| ^~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
#
https://github.com/0day-ci/linux/commit/1025d48f0402f678140989df94e55a62f...
git remote add linux-review
https://github.com/0day-ci/linux
git fetch --no-tags linux-review
Jordan-Niethe/KVM-PPC-Use-the-ppc_inst-type/20200820-114059
git checkout 1025d48f0402f678140989df94e55a62f67c1d48
vim +/run +823 arch/powerpc/kvm/booke.c
801
802 static int emulation_exit(struct kvm_vcpu *vcpu)
803 {
804 enum emulation_result er;
805
806 er = kvmppc_emulate_instruction(vcpu);
807 switch (er) {
808 case EMULATE_DONE:
809 /* don't overwrite subtypes, just account kvm_stats */
810 kvmppc_account_exit_stat(vcpu, EMULATED_INST_EXITS);
811 /* Future optimization: only reload non-volatiles if
812 * they were actually modified by emulation. */
813 return RESUME_GUEST_NV;
814
815 case EMULATE_AGAIN:
816 return RESUME_GUEST;
817
818 case EMULATE_FAIL:
819 printk(KERN_CRIT "%s: emulation at %lx failed (%s)\n",
820 __func__, vcpu->arch.regs.nip,
ppc_inst_as_str(vcpu->arch.last_inst));
821 /* For debugging, encode the failing instruction and
822 * report it to userspace. */
823 run->hw.hardware_exit_reason = ~0ULL << 32;
824 run->hw.hardware_exit_reason |= ppc_inst_val(vcpu->arch.last_inst);
825 kvmppc_core_queue_program(vcpu, ESR_PIL);
826 return RESUME_HOST;
827
828 case EMULATE_EXIT_USER:
829 return RESUME_HOST;
830
831 default:
832 BUG();
833 }
834 }
835
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org