diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2008-02-01 11:49:42 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-02-01 11:49:42 -0500 |
commit | 009cbadb6e9364e0b006ef6531953c0eced1db4d (patch) | |
tree | 7b9327a18ebe3ce214b07347b7c512898a92b9f1 /arch | |
parent | c72258c7c9de448d5ea826ec6b4737eccbaa6718 (diff) |
x86: fix section mismatch warning in acpi/boot.c
Fix following warning:
WARNING: o-x86_64/arch/x86/kernel/built-in.o(.text+0x13d15): Section mismatch in reference from the function acpi_map_lsapic() to the function .cpuinit.text:mp_register_lapic()
The function acpi_map_lsapic() is exported and thus not annotated.
But the sole user is acpi/processor_core.c in a __cpuinit path.
So create a small wrapper and put back the annotation thus
avoiding the warning.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/kernel/acpi/boot.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/arch/x86/kernel/acpi/boot.c b/arch/x86/kernel/acpi/boot.c index 0ca27c7b0e8d..d2a58431a074 100644 --- a/arch/x86/kernel/acpi/boot.c +++ b/arch/x86/kernel/acpi/boot.c | |||
@@ -496,7 +496,8 @@ EXPORT_SYMBOL(acpi_register_gsi); | |||
496 | * ACPI based hotplug support for CPU | 496 | * ACPI based hotplug support for CPU |
497 | */ | 497 | */ |
498 | #ifdef CONFIG_ACPI_HOTPLUG_CPU | 498 | #ifdef CONFIG_ACPI_HOTPLUG_CPU |
499 | int acpi_map_lsapic(acpi_handle handle, int *pcpu) | 499 | |
500 | static int __cpuinit _acpi_map_lsapic(acpi_handle handle, int *pcpu) | ||
500 | { | 501 | { |
501 | struct acpi_buffer buffer = { ACPI_ALLOCATE_BUFFER, NULL }; | 502 | struct acpi_buffer buffer = { ACPI_ALLOCATE_BUFFER, NULL }; |
502 | union acpi_object *obj; | 503 | union acpi_object *obj; |
@@ -551,6 +552,11 @@ int acpi_map_lsapic(acpi_handle handle, int *pcpu) | |||
551 | return 0; | 552 | return 0; |
552 | } | 553 | } |
553 | 554 | ||
555 | /* wrapper to silence section mismatch warning */ | ||
556 | int __ref acpi_map_lsapic(acpi_handle handle, int *pcpu) | ||
557 | { | ||
558 | return _acpi_map_lsapic(handle, pcpu); | ||
559 | } | ||
554 | EXPORT_SYMBOL(acpi_map_lsapic); | 560 | EXPORT_SYMBOL(acpi_map_lsapic); |
555 | 561 | ||
556 | int acpi_unmap_lsapic(int cpu) | 562 | int acpi_unmap_lsapic(int cpu) |