Re: [PATCH] x86/hyperv: make vapic support x2apic mode

From: Roman Kagan
Date: Tue Oct 01 2019 - 05:19:16 EST


On Tue, Oct 01, 2019 at 06:44:08AM +0800, kbuild test robot wrote:
> url: https://github.com/0day-ci/linux/commits/Roman-Kagan/x86-hyperv-make-vapic-support-x2apic-mode/20191001-044238
> config: x86_64-randconfig-e004-201939 (attached as .config)
> compiler: gcc-7 (Debian 7.4.0-13) 7.4.0
> reproduce:
> # save the attached .config to linux build tree
> make ARCH=x86_64
>
> If you fix the issue, kindly add following tag
> Reported-by: kbuild test robot <lkp@xxxxxxxxx>
>
> All errors (new ones prefixed by >>):
>
> arch/x86/hyperv/hv_apic.c: In function 'hv_x2apic_read':
> >> arch/x86/hyperv/hv_apic.c:91:10: error: implicit declaration of function 'native_apic_msr_read'; did you mean 'native_apic_icr_read'? [-Werror=implicit-function-declaration]
> return native_apic_msr_read(reg);
> ^~~~~~~~~~~~~~~~~~~~
> native_apic_icr_read
> arch/x86/hyperv/hv_apic.c: In function 'hv_x2apic_write':
> >> arch/x86/hyperv/hv_apic.c:119:3: error: implicit declaration of function 'native_apic_msr_write'; did you mean 'native_apic_icr_write'? [-Werror=implicit-function-declaration]
> native_apic_msr_write(reg, val);
> ^~~~~~~~~~~~~~~~~~~~~
> native_apic_icr_write
> cc1: some warnings being treated as errors

Oops, !CONFIG_X86_X2APIC needs to be handled. Will post v2.

Roman.