Re: [PATCH] x86/hyperv: Enable 15-bit APIC ID if the hypervisor supports it

From: kernel test robot
Date: Tue Nov 03 2020 - 02:39:39 EST


Hi Dexuan,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on tip/x86/core]
[also build test ERROR on tip/master v5.10-rc2 next-20201102]
[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/Dexuan-Cui/x86-hyperv-Enable-15-bit-APIC-ID-if-the-hypervisor-supports-it/20201103-091414
base: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git 238c91115cd05c71447ea071624a4c9fe661f970
config: i386-randconfig-r012-20201103 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/0day-ci/linux/commit/c4037b8c4cd61f970749c6685a3df5a1376193d2
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Dexuan-Cui/x86-hyperv-Enable-15-bit-APIC-ID-if-the-hypervisor-supports-it/20201103-091414
git checkout c4037b8c4cd61f970749c6685a3df5a1376193d2
# 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@xxxxxxxxx>

All error/warnings (new ones prefixed by >>):

>> arch/x86/kernel/cpu/mshyperv.c:397:8: error: 'struct x86_hyper_init' has no member named 'msi_ext_dest_id'
397 | .init.msi_ext_dest_id = ms_hyperv_msi_ext_dest_id,
| ^~~~~~~~~~~~~~~
>> arch/x86/kernel/cpu/mshyperv.c:397:26: error: initialization of 'void (*)(void)' from incompatible pointer type 'bool (*)(void)' {aka '_Bool (*)(void)'} [-Werror=incompatible-pointer-types]
397 | .init.msi_ext_dest_id = ms_hyperv_msi_ext_dest_id,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
arch/x86/kernel/cpu/mshyperv.c:397:26: note: (near initialization for 'x86_hyper_ms_hyperv.init.init_platform')
>> arch/x86/kernel/cpu/mshyperv.c:398:24: warning: initialized field overwritten [-Woverride-init]
398 | .init.init_platform = ms_hyperv_init_platform,
| ^~~~~~~~~~~~~~~~~~~~~~~
arch/x86/kernel/cpu/mshyperv.c:398:24: note: (near initialization for 'x86_hyper_ms_hyperv.init.init_platform')
cc1: some warnings being treated as errors

vim +397 arch/x86/kernel/cpu/mshyperv.c

391
392 const __initconst struct hypervisor_x86 x86_hyper_ms_hyperv = {
393 .name = "Microsoft Hyper-V",
394 .detect = ms_hyperv_platform,
395 .type = X86_HYPER_MS_HYPERV,
396 .init.x2apic_available = ms_hyperv_x2apic_available,
> 397 .init.msi_ext_dest_id = ms_hyperv_msi_ext_dest_id,
> 398 .init.init_platform = ms_hyperv_init_platform,

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip