tree:
https://github.com/intel/tdx.git kvm
head: e34cd76ed9fd5147cdcc26eaff64b0b367004497
commit: d79010bf4f03baa7510e9846e2de4f24de98ed0b [68/85] KVM: VMX: Add 'main.c' to
wrap VMX and TDX
config: i386-randconfig-a002-20201012 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
#
https://github.com/intel/tdx/commit/d79010bf4f03baa7510e9846e2de4f24de98ed0b
git remote add intel-tdx
https://github.com/intel/tdx.git
git fetch --no-tags intel-tdx kvm
git checkout d79010bf4f03baa7510e9846e2de4f24de98ed0b
# save the attached .config to linux build tree
make W=1 ARCH=i386
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/x86/kvm/vmx/main.c: In function 'vt_set_hv_timer':
arch/x86/kvm/vmx/main.c:529:9: error: implicit declaration of function
'vmx_set_hv_timer'; did you mean 'vt_set_hv_timer'?
[-Werror=implicit-function-declaration]
529 | return vmx_set_hv_timer(vcpu, guest_deadline_tsc, expired);
| ^~~~~~~~~~~~~~~~
| vt_set_hv_timer
arch/x86/kvm/vmx/main.c: In function 'vt_cancel_hv_timer':
arch/x86/kvm/vmx/main.c:534:2: error: implicit declaration of function
'vmx_cancel_hv_timer'; did you mean 'vt_cancel_hv_timer'?
[-Werror=implicit-function-declaration]
534 | vmx_cancel_hv_timer(vcpu);
| ^~~~~~~~~~~~~~~~~~~
| vt_cancel_hv_timer
At top level:
> arch/x86/kvm/vmx/main.c:532:13: error:
'vt_cancel_hv_timer' defined but not used [-Werror=unused-function]
532
| static void vt_cancel_hv_timer(struct kvm_vcpu *vcpu)
| ^~~~~~~~~~~~~~~~~~
> arch/x86/kvm/vmx/main.c:526:12: error: 'vt_set_hv_timer'
defined but not used [-Werror=unused-function]
526 | static int
vt_set_hv_timer(struct kvm_vcpu *vcpu, u64 guest_deadline_tsc,
| ^~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
vim +/vt_cancel_hv_timer +532 arch/x86/kvm/vmx/main.c
524
525
526 static int vt_set_hv_timer(struct kvm_vcpu *vcpu, u64
guest_deadline_tsc,
527 bool *expired)
528 {
529 return vmx_set_hv_timer(vcpu, guest_deadline_tsc, expired);
530 }
531
532 static void vt_cancel_hv_timer(struct kvm_vcpu *vcpu)
533 {
534 vmx_cancel_hv_timer(vcpu);
535 }
536
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org