Commit:     009cbadb6e9364e0b006ef6531953c0eced1db4d
Parent:     c72258c7c9de448d5ea826ec6b4737eccbaa6718
Author:     Sam Ravnborg <[EMAIL PROTECTED]>
AuthorDate: Fri Feb 1 17:49:42 2008 +0100
Committer:  Ingo Molnar <[EMAIL PROTECTED]>
CommitDate: Fri Feb 1 17:49:42 2008 +0100

    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 
    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 <[EMAIL PROTECTED]>
    Signed-off-by: Ingo Molnar <[EMAIL PROTECTED]>
 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 0ca27c7..d2a5843 100644
--- a/arch/x86/kernel/acpi/boot.c
+++ b/arch/x86/kernel/acpi/boot.c
@@ -496,7 +496,8 @@ EXPORT_SYMBOL(acpi_register_gsi);
  *  ACPI based hotplug support for CPU
-int acpi_map_lsapic(acpi_handle handle, int *pcpu)
+static int __cpuinit _acpi_map_lsapic(acpi_handle handle, int *pcpu)
        struct acpi_buffer buffer = { ACPI_ALLOCATE_BUFFER, NULL };
        union acpi_object *obj;
@@ -551,6 +552,11 @@ int acpi_map_lsapic(acpi_handle handle, int *pcpu)
        return 0;
+/* wrapper to silence section mismatch warning */
+int __ref acpi_map_lsapic(acpi_handle handle, int *pcpu)
+       return _acpi_map_lsapic(handle, pcpu);
 int acpi_unmap_lsapic(int cpu)
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to