[tip:WIP.x86/cleanups 2/3] arch/x86/kernel/setup.c:1173:2: error: implicit declaration of function 'generic_apic_probe'; did you mean 'generic_drop_inode'?

From: kbuild test robot
Date: Mon Nov 18 2019 - 15:51:54 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git WIP.x86/cleanups
head: 9dcc69c4ea5c0cd4031a4dde645c71b66bea04f8
commit: c1877650f3c9fb8568f8dce3fc804ab45125cf78 [2/3] x86/setup: Clean up the header portion of setup.c
config: i386-alldefconfig (attached as .config)
compiler: gcc-7 (Debian 7.4.0-14) 7.4.0
reproduce:
git checkout c1877650f3c9fb8568f8dce3fc804ab45125cf78
# save the attached .config to linux build tree
make ARCH=i386

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

arch/x86/kernel/setup.c: In function 'setup_arch':
>> arch/x86/kernel/setup.c:1173:2: error: implicit declaration of function 'generic_apic_probe'; did you mean 'generic_drop_inode'? [-Werror=implicit-function-declaration]
generic_apic_probe();
^~~~~~~~~~~~~~~~~~
generic_drop_inode
>> arch/x86/kernel/setup.c:1193:2: error: implicit declaration of function 'init_apic_mappings'; did you mean 'init_mem_mapping'? [-Werror=implicit-function-declaration]
init_apic_mappings();
^~~~~~~~~~~~~~~~~~
init_mem_mapping
>> arch/x86/kernel/setup.c:1199:2: error: implicit declaration of function 'io_apic_init_mappings'; did you mean 'init_mem_mapping'? [-Werror=implicit-function-declaration]
io_apic_init_mappings();
^~~~~~~~~~~~~~~~~~~~~
init_mem_mapping
cc1: some warnings being treated as errors

vim +1173 arch/x86/kernel/setup.c

72d7c3b33c9808 arch/x86/kernel/setup.c Yinghai Lu 2010-08-25 1078
4f7b92263ad68c arch/x86/kernel/setup.c Yinghai Lu 2013-01-24 1079 reserve_real_mode();
893f38d144a4d9 arch/x86/kernel/setup.c Yinghai Lu 2009-12-10 1080
a9acc5365dbda2 arch/x86/kernel/setup.c Jesse Barnes 2012-11-14 1081 trim_platform_memory_ranges();
95c9608478d639 arch/x86/kernel/setup.c H. Peter Anvin 2013-02-14 1082 trim_low_memory_range();
a9acc5365dbda2 arch/x86/kernel/setup.c Jesse Barnes 2012-11-14 1083
22ddfcaa0dbae9 arch/x86/kernel/setup.c Yinghai Lu 2012-11-16 1084 init_mem_mapping();
1bbbbe779aabe1 arch/x86/kernel/setup.c Jacob Shin 2011-10-20 1085
433f8924fa8e55 arch/x86/kernel/setup.c Thomas Gleixner 2017-08-28 1086 idt_setup_early_pf();
1bbbbe779aabe1 arch/x86/kernel/setup.c Jacob Shin 2011-10-20 1087
18bc7bd523e0fc arch/x86/kernel/setup.c Andy Lutomirski 2016-08-10 1088 /*
18bc7bd523e0fc arch/x86/kernel/setup.c Andy Lutomirski 2016-08-10 1089 * Update mmu_cr4_features (and, indirectly, trampoline_cr4_features)
18bc7bd523e0fc arch/x86/kernel/setup.c Andy Lutomirski 2016-08-10 1090 * with the current CR4 value. This may not be necessary, but
18bc7bd523e0fc arch/x86/kernel/setup.c Andy Lutomirski 2016-08-10 1091 * auditing all the early-boot CR4 manipulation would be needed to
18bc7bd523e0fc arch/x86/kernel/setup.c Andy Lutomirski 2016-08-10 1092 * rule it out.
c7ad5ad297e644 arch/x86/kernel/setup.c Andy Lutomirski 2017-09-10 1093 *
c7ad5ad297e644 arch/x86/kernel/setup.c Andy Lutomirski 2017-09-10 1094 * Mask off features that don't work outside long mode (just
c7ad5ad297e644 arch/x86/kernel/setup.c Andy Lutomirski 2017-09-10 1095 * PCIDE for now).
18bc7bd523e0fc arch/x86/kernel/setup.c Andy Lutomirski 2016-08-10 1096 */
c7ad5ad297e644 arch/x86/kernel/setup.c Andy Lutomirski 2017-09-10 1097 mmu_cr4_features = __read_cr4() & ~X86_CR4_PCIDE;
18bc7bd523e0fc arch/x86/kernel/setup.c Andy Lutomirski 2016-08-10 1098
4ce7a8697cb795 arch/x86/kernel/setup.c Yinghai Lu 2014-01-27 1099 memblock_set_current_limit(get_max_mapped());
4e29684c40f2a3 arch/x86/kernel/setup_32.c Yinghai Lu 2008-06-24 1100
e7b3789524eecc arch/x86/kernel/setup.c Yinghai Lu 2008-06-25 1101 /*
e7b3789524eecc arch/x86/kernel/setup.c Yinghai Lu 2008-06-25 1102 * NOTE: On x86-32, only from this point on, fixmaps are ready for use.
e7b3789524eecc arch/x86/kernel/setup.c Yinghai Lu 2008-06-25 1103 */
e7b3789524eecc arch/x86/kernel/setup.c Yinghai Lu 2008-06-25 1104
e7b3789524eecc arch/x86/kernel/setup.c Yinghai Lu 2008-06-25 1105 #ifdef CONFIG_PROVIDE_OHCI1394_DMA_INIT
e7b3789524eecc arch/x86/kernel/setup.c Yinghai Lu 2008-06-25 1106 if (init_ohci1394_dma_early)
e7b3789524eecc arch/x86/kernel/setup.c Yinghai Lu 2008-06-25 1107 init_ohci1394_dma_on_all_controllers();
e7b3789524eecc arch/x86/kernel/setup.c Yinghai Lu 2008-06-25 1108 #endif
162a7e7500f966 arch/x86/kernel/setup.c Mike Travis 2011-05-24 1109 /* Allocate bigger log buffer */
162a7e7500f966 arch/x86/kernel/setup.c Mike Travis 2011-05-24 1110 setup_log_buf(1);
e7b3789524eecc arch/x86/kernel/setup.c Yinghai Lu 2008-06-25 1111
9661b332041dab arch/x86/kernel/setup.c David Howells 2017-02-06 1112 if (efi_enabled(EFI_BOOT)) {
9661b332041dab arch/x86/kernel/setup.c David Howells 2017-02-06 1113 switch (boot_params.secure_boot) {
9661b332041dab arch/x86/kernel/setup.c David Howells 2017-02-06 1114 case efi_secureboot_mode_disabled:
9661b332041dab arch/x86/kernel/setup.c David Howells 2017-02-06 1115 pr_info("Secure boot disabled\n");
9661b332041dab arch/x86/kernel/setup.c David Howells 2017-02-06 1116 break;
9661b332041dab arch/x86/kernel/setup.c David Howells 2017-02-06 1117 case efi_secureboot_mode_enabled:
9661b332041dab arch/x86/kernel/setup.c David Howells 2017-02-06 1118 pr_info("Secure boot enabled\n");
9661b332041dab arch/x86/kernel/setup.c David Howells 2017-02-06 1119 break;
9661b332041dab arch/x86/kernel/setup.c David Howells 2017-02-06 1120 default:
9661b332041dab arch/x86/kernel/setup.c David Howells 2017-02-06 1121 pr_info("Secure boot could not be determined\n");
9661b332041dab arch/x86/kernel/setup.c David Howells 2017-02-06 1122 break;
9661b332041dab arch/x86/kernel/setup.c David Howells 2017-02-06 1123 }
9661b332041dab arch/x86/kernel/setup.c David Howells 2017-02-06 1124 }
9661b332041dab arch/x86/kernel/setup.c David Howells 2017-02-06 1125
2ec65f8b89ea00 arch/x86/kernel/setup_32.c Yinghai Lu 2008-06-23 1126 reserve_initrd();
2ec65f8b89ea00 arch/x86/kernel/setup_32.c Yinghai Lu 2008-06-23 1127
da3d3f98d28bc0 arch/x86/kernel/setup.c Aleksey Makarov 2016-06-20 1128 acpi_table_upgrade();
53aac44c904abb arch/x86/kernel/setup.c Thomas Renninger 2012-10-01 1129
76934ed4b33b65 arch/x86/kernel/setup_32.c Yinghai Lu 2008-06-25 1130 vsmp_init();
76934ed4b33b65 arch/x86/kernel/setup_32.c Yinghai Lu 2008-06-25 1131
1c6e55032e24ff arch/x86/kernel/setup_32.c Yinghai Lu 2008-06-17 1132 io_delay_init();
1c6e55032e24ff arch/x86/kernel/setup_32.c Yinghai Lu 2008-06-17 1133
630b3aff8a51c9 arch/x86/kernel/setup.c Lukas Wunner 2017-08-01 1134 early_platform_quirks();
630b3aff8a51c9 arch/x86/kernel/setup.c Lukas Wunner 2017-08-01 1135
1c6e55032e24ff arch/x86/kernel/setup_32.c Yinghai Lu 2008-06-17 1136 /*
1c6e55032e24ff arch/x86/kernel/setup_32.c Yinghai Lu 2008-06-17 1137 * Parse the ACPI tables for possible boot-time SMP configuration.
1c6e55032e24ff arch/x86/kernel/setup_32.c Yinghai Lu 2008-06-17 1138 */
20e6926dcbafa1 arch/x86/kernel/setup.c Yinghai Lu 2013-03-01 1139 acpi_boot_table_init();
20e6926dcbafa1 arch/x86/kernel/setup.c Yinghai Lu 2013-03-01 1140
20e6926dcbafa1 arch/x86/kernel/setup.c Yinghai Lu 2013-03-01 1141 early_acpi_boot_init();
20e6926dcbafa1 arch/x86/kernel/setup.c Yinghai Lu 2013-03-01 1142
d8fc3afc49bb22 arch/x86/kernel/setup.c Tejun Heo 2011-02-16 1143 initmem_init();
3c325f8233c35f arch/x86/kernel/setup.c Weijie Yang 2014-10-24 1144 dma_contiguous_reserve(max_pfn_mapped << PAGE_SHIFT);
fa591c4ae76ecb arch/x86/kernel/setup.c Tang Chen 2013-11-12 1145
fa591c4ae76ecb arch/x86/kernel/setup.c Tang Chen 2013-11-12 1146 /*
fa591c4ae76ecb arch/x86/kernel/setup.c Tang Chen 2013-11-12 1147 * Reserve memory for crash kernel after SRAT is parsed so that it
fa591c4ae76ecb arch/x86/kernel/setup.c Tang Chen 2013-11-12 1148 * won't consume hotpluggable memory.
fa591c4ae76ecb arch/x86/kernel/setup.c Tang Chen 2013-11-12 1149 */
fa591c4ae76ecb arch/x86/kernel/setup.c Tang Chen 2013-11-12 1150 reserve_crashkernel();
fa591c4ae76ecb arch/x86/kernel/setup.c Tang Chen 2013-11-12 1151
6f2a75369e7561 arch/x86/kernel/setup.c Yinghai Lu 2010-08-25 1152 memblock_find_dma_reserve();
91467bdf6e5305 arch/x86/kernel/setup.c Bernhard Walle 2008-07-18 1153
ccb64941f375a6 arch/x86/kernel/setup.c Boris Ostrovsky 2017-09-11 1154 if (!early_xdbc_setup_hardware())
ccb64941f375a6 arch/x86/kernel/setup.c Boris Ostrovsky 2017-09-11 1155 early_xdbc_register_console();
ccb64941f375a6 arch/x86/kernel/setup.c Boris Ostrovsky 2017-09-11 1156
7737b215ad0f94 arch/x86/kernel/setup.c Attilio Rao 2012-08-21 1157 x86_init.paging.pagetable_init();
f212ec4b7b4d84 arch/x86/kernel/setup_32.c Bernhard Kaindl 2008-01-30 1158
ef7f0d6a6ca8c9 arch/x86/kernel/setup.c Andrey Ryabinin 2015-02-13 1159 kasan_init();
ef7f0d6a6ca8c9 arch/x86/kernel/setup.c Andrey Ryabinin 2015-02-13 1160
d2b6dc61a8dd3c arch/x86/kernel/setup.c Andy Lutomirski 2017-05-08 1161 /*
945fd17ab6bab8 arch/x86/kernel/setup.c Thomas Gleixner 2018-02-28 1162 * Sync back kernel address range.
945fd17ab6bab8 arch/x86/kernel/setup.c Thomas Gleixner 2018-02-28 1163 *
945fd17ab6bab8 arch/x86/kernel/setup.c Thomas Gleixner 2018-02-28 1164 * FIXME: Can the later sync in setup_cpu_entry_areas() replace
945fd17ab6bab8 arch/x86/kernel/setup.c Thomas Gleixner 2018-02-28 1165 * this call?
d2b6dc61a8dd3c arch/x86/kernel/setup.c Andy Lutomirski 2017-05-08 1166 */
945fd17ab6bab8 arch/x86/kernel/setup.c Thomas Gleixner 2018-02-28 1167 sync_initial_page_table();
d2b6dc61a8dd3c arch/x86/kernel/setup.c Andy Lutomirski 2017-05-08 1168
3162534069597e arch/x86/kernel/setup.c Joseph Cihula 2009-06-30 1169 tboot_probe();
3162534069597e arch/x86/kernel/setup.c Joseph Cihula 2009-06-30 1170
76934ed4b33b65 arch/x86/kernel/setup_32.c Yinghai Lu 2008-06-25 1171 map_vsyscall();
76934ed4b33b65 arch/x86/kernel/setup_32.c Yinghai Lu 2008-06-25 1172
1a3f239ddf9208 arch/i386/kernel/setup.c Rusty Russell 2006-09-26 @1173 generic_apic_probe();
^1da177e4c3f41 arch/i386/kernel/setup.c Linus Torvalds 2005-04-16 1174
54ef34009a69f9 arch/x86/kernel/setup_32.c Andi Kleen 2007-10-19 1175 early_quirks();
d44647b0a6e48d arch/i386/kernel/setup.c Andy Currid 2006-06-08 1176
295deae401fc5b arch/x86/kernel/setup_32.c Yinghai Lu 2008-06-23 1177 /*
295deae401fc5b arch/x86/kernel/setup_32.c Yinghai Lu 2008-06-23 1178 * Read APIC and some other early information from ACPI tables.
295deae401fc5b arch/x86/kernel/setup_32.c Yinghai Lu 2008-06-23 1179 */
^1da177e4c3f41 arch/i386/kernel/setup.c Linus Torvalds 2005-04-16 1180 acpi_boot_init();
efafc8b213e67e arch/x86/kernel/setup.c Feng Tang 2009-08-14 1181 sfi_init();
a906fdaacca499 arch/x86/kernel/setup.c Thomas Gleixner 2011-02-25 1182 x86_dtb_init();
04606618bb50c4 arch/x86/kernel/setup_32.c Yinghai Lu 2008-06-21 1183
295deae401fc5b arch/x86/kernel/setup_32.c Yinghai Lu 2008-06-23 1184 /*
295deae401fc5b arch/x86/kernel/setup_32.c Yinghai Lu 2008-06-23 1185 * get boot-time SMP configuration:
295deae401fc5b arch/x86/kernel/setup_32.c Yinghai Lu 2008-06-23 1186 */
e0da33646826b6 arch/x86/kernel/setup_32.c Yinghai Lu 2008-06-08 1187 get_smp_config();
76934ed4b33b65 arch/x86/kernel/setup_32.c Yinghai Lu 2008-06-25 1188
1e90a13d0c3dc9 arch/x86/kernel/setup.c Thomas Gleixner 2016-10-29 1189 /*
1e90a13d0c3dc9 arch/x86/kernel/setup.c Thomas Gleixner 2016-10-29 1190 * Systems w/o ACPI and mptables might not have it mapped the local
1e90a13d0c3dc9 arch/x86/kernel/setup.c Thomas Gleixner 2016-10-29 1191 * APIC yet, but prefill_possible_map() might need to access it.
1e90a13d0c3dc9 arch/x86/kernel/setup.c Thomas Gleixner 2016-10-29 1192 */
1e90a13d0c3dc9 arch/x86/kernel/setup.c Thomas Gleixner 2016-10-29 @1193 init_apic_mappings();
1e90a13d0c3dc9 arch/x86/kernel/setup.c Thomas Gleixner 2016-10-29 1194
329513a35d1a2b arch/x86/kernel/setup.c Yinghai Lu 2008-07-02 1195 prefill_possible_map();
301e619020dd67 arch/x86/kernel/setup.c Yinghai Lu 2008-08-19 1196
5f4765f96eebee arch/x86/kernel/setup.c Yinghai Lu 2008-07-02 1197 init_cpu_to_node();
5f4765f96eebee arch/x86/kernel/setup.c Yinghai Lu 2008-07-02 1198
ca1b88622e9c16 arch/x86/kernel/setup.c Thomas Gleixner 2015-04-24 @1199 io_apic_init_mappings();
9d6a4d0823b3b8 arch/x86/kernel/setup.c Yinghai Lu 2008-08-19 1200
f3614646005a1b arch/x86/kernel/setup.c Juergen Gross 2017-11-09 1201 x86_init.hyper.guest_late_init();
^1da177e4c3f41 arch/i386/kernel/setup.c Linus Torvalds 2005-04-16 1202
1506c8dc947251 arch/x86/kernel/setup.c Ingo Molnar 2017-01-28 1203 e820__reserve_resources();
cc55f7537db6af arch/x86/kernel/setup.c Zhimin Gu 2018-09-21 1204 e820__register_nosave_regions(max_pfn);
^1da177e4c3f41 arch/i386/kernel/setup.c Linus Torvalds 2005-04-16 1205
8fee697d990c54 arch/x86/kernel/setup.c Thomas Gleixner 2009-08-19 1206 x86_init.resources.reserve_resources();
41c094fd3ca54f arch/x86/kernel/setup_32.c Yinghai Lu 2008-06-16 1207
2df908baf52ccf arch/x86/kernel/setup.c Ingo Molnar 2017-01-28 1208 e820__setup_pci_gap();
41c094fd3ca54f arch/x86/kernel/setup_32.c Yinghai Lu 2008-06-16 1209

:::::: The code at line 1173 was first introduced by commit
:::::: 1a3f239ddf9208f2e52d36fef1c1c4518cbbbabe [PATCH] i386: Replace i386 open-coded cmdline parsing with

:::::: TO: Rusty Russell <rusty@xxxxxxxxxxxxxxx>
:::::: CC: Andi Kleen <andi@xxxxxxxxxxxxxxxxx>

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx Intel Corporation

Attachment: .config.gz
Description: application/gzip