tree:
https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git devicemsi
head: 67d94e5e316843b1af2b0c4cf5d4f8e9a91d97b4
commit: c788f3e806861afdef54db59dc5be9afb5bc906f [18/38] x86/irq: Initialize PCI/MSI
domain at PCI init time
config: i386-randconfig-s002-20200820 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.2-191-g10164920-dirty
git checkout c788f3e806861afdef54db59dc5be9afb5bc906f
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' 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/kernel/x86_init.c:80:28: error:
'native_create_pci_msi_domain' undeclared here (not in a function)
80
| .create_pci_msi_domain = native_create_pci_msi_domain,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git/commit/?id...
git remote add tglx-devel
https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git
git fetch --no-tags tglx-devel devicemsi
git checkout c788f3e806861afdef54db59dc5be9afb5bc906f
vim +/native_create_pci_msi_domain +80 arch/x86/kernel/x86_init.c
62
63 .resources = {
64 .probe_roms = probe_roms,
65 .reserve_resources = reserve_standard_io_resources,
66 .memory_setup = e820__memory_setup_default,
67 },
68
69 .mpparse = {
70 .setup_ioapic_ids = x86_init_noop,
71 .find_smp_config = default_find_smp_config,
72 .get_smp_config = default_get_smp_config,
73 },
74
75 .irqs = {
76 .pre_vector_init = init_ISA_irqs,
77 .intr_init = native_init_IRQ,
78 .intr_mode_select = apic_intr_mode_select,
79 .intr_mode_init = apic_intr_mode_init,
80 .create_pci_msi_domain = native_create_pci_msi_domain,
81 },
82
83 .oem = {
84 .arch_setup = x86_init_noop,
85 .banner = default_banner,
86 },
87
88 .paging = {
89 .pagetable_init = native_pagetable_init,
90 },
91
92 .timers = {
93 .setup_percpu_clockev = setup_boot_APIC_clock,
94 .timer_init = hpet_time_init,
95 .wallclock_init = x86_wallclock_init,
96 },
97
98 .iommu = {
99 .iommu_init = iommu_init_noop,
100 },
101
102 .pci = {
103 .init = x86_default_pci_init,
104 .init_irq = x86_default_pci_init_irq,
105 .fixup_irqs = x86_default_pci_fixup_irqs,
106 },
107
108 .hyper = {
109 .init_platform = x86_init_noop,
110 .guest_late_init = x86_init_noop,
111 .x2apic_available = bool_x86_init_noop,
112 .init_mem_mapping = x86_init_noop,
113 .init_after_bootmem = x86_init_noop,
114 },
115
116 .acpi = {
117 .set_root_pointer = x86_default_set_root_pointer,
118 .get_root_pointer = x86_default_get_root_pointer,
119 .reduced_hw_early_init = acpi_generic_reduced_hw_init,
120 },
121 };
122
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org