acpi: add some missing section markers
authorJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Sun, 22 Feb 2009 22:58:56 +0000 (14:58 -0800)
committerIngo Molnar <mingo@elte.hu>
Sun, 22 Feb 2009 23:10:47 +0000 (00:10 +0100)
early_acpi_os_unmap_memory() is an __init function, and
acpi_os_unmap_memory() is allowed to access an __init function
until acpi_gbl_permanent_mmap is set up.

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Cc: Len Brown <len.brown@intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
drivers/acpi/osl.c

index d1dd516..2b6c590 100644 (file)
@@ -272,7 +272,7 @@ acpi_os_map_memory(acpi_physical_address phys, acpi_size size)
 }
 EXPORT_SYMBOL_GPL(acpi_os_map_memory);
 
-void acpi_os_unmap_memory(void __iomem * virt, acpi_size size)
+void __ref acpi_os_unmap_memory(void __iomem *virt, acpi_size size)
 {
        if (acpi_gbl_permanent_mmap)
                iounmap(virt);
@@ -281,7 +281,7 @@ void acpi_os_unmap_memory(void __iomem * virt, acpi_size size)
 }
 EXPORT_SYMBOL_GPL(acpi_os_unmap_memory);
 
-void early_acpi_os_unmap_memory(void __iomem * virt, acpi_size size)
+void __init early_acpi_os_unmap_memory(void __iomem *virt, acpi_size size)
 {
        if (!acpi_gbl_permanent_mmap)
                __acpi_unmap_table(virt, size);