Skip to content

Commit

Permalink
x86: fix section mismatch warning - apic_flat
Browse files Browse the repository at this point in the history
Impact: cleanup only, no functionality changed

WARNING: vmlinux.o(.data+0xbe08): Section mismatch in reference from the variable apic_flat to the function .init.text:flat_acpi_madt_oem_check()
The variable apic_flat references
the function __init flat_acpi_madt_oem_check()

This is harmless, because the .acpi_madt_oem_check is only called
during init time. But we keep the function pointer around in a .data
function pointer template, so it's better we do not keep that stale
- so mark this function non-__init.

Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Marcin Slusarz authored and Ingo Molnar committed Oct 22, 2008
1 parent 2cb0ebe commit 983f91f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/kernel/genapic_flat_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include <acpi/acpi_bus.h>
#endif

static int __init flat_acpi_madt_oem_check(char *oem_id, char *oem_table_id)
static int flat_acpi_madt_oem_check(char *oem_id, char *oem_table_id)
{
return 1;
}
Expand Down

0 comments on commit 983f91f

Please sign in to comment.