arch/x86/kvm/svm.c:3866:10: error: implicit declaration of function '__default_cpu_present_to_apicid'

From: kbuild test robot
Date: Sat Jun 04 2016 - 22:38:35 EST


FYI, the error/warning still remains.

tree: master
head: 049ec1b5a76d34a6980cccdb7c0baeb4eed7a993
commit: 340d3bc3664e5d3fb922fe6e3ae2d901d4900d88 svm: Add interrupt injection via AVIC
date: 2 weeks ago
config: i386-randconfig-sb0-06051026 (attached as .config)
compiler: gcc-6 (Debian 6.1.1-1) 6.1.1 20160430
git checkout 340d3bc3664e5d3fb922fe6e3ae2d901d4900d88
# save the attached .config to linux build tree
make ARCH=i386

All errors (new ones prefixed by >>):

arch/x86/kvm/svm.c: In function 'svm_deliver_avic_intr':
>> arch/x86/kvm/svm.c:3866:10: error: implicit declaration of function '__default_cpu_present_to_apicid' [-Werror=implicit-function-declaration]
At top level:
arch/x86/kvm/svm.c:52:32: warning: 'svm_cpu_id' defined but not used [-Wunused-const-variable=]
static const struct x86_cpu_id svm_cpu_id[] = {
cc1: some warnings being treated as errors

vim +/__default_cpu_present_to_apicid +3866 arch/x86/kvm/svm.c

3860 {
3861 kvm_lapic_set_irr(vec, vcpu->arch.apic);
3862 smp_mb__after_atomic();
3864 if (avic_vcpu_is_running(vcpu))
3865 wrmsrl(SVM_AVIC_DOORBELL,
> 3866 __default_cpu_present_to_apicid(vcpu->cpu));
3867 else
3868 kvm_vcpu_wake_up(vcpu);
3869 }

0-DAY kernel test infrastructure Open Source Technology Center Intel Corporation

Attachment: .config.gz
Description: Binary data