]> err.no Git - linux-2.6/commitdiff
acpi: make __acpi_map_table() and __init function
authorJan Beulich <jbeulich@novell.com>
Thu, 13 Dec 2007 08:33:59 +0000 (08:33 +0000)
committerLen Brown <len.brown@intel.com>
Thu, 13 Dec 2007 22:17:50 +0000 (17:17 -0500)
.. as it it used only during early boot.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
 arch/ia64/kernel/acpi.c     |    2 +-
 arch/x86/kernel/acpi/boot.c |    4 ++--
 drivers/acpi/osl.c          |    3 ++-
 3 files changed, 5 insertions(+), 4 deletions(-)
Signed-off-by: Len Brown <len.brown@intel.com>
arch/ia64/kernel/acpi.c
arch/x86/kernel/acpi/boot.c
drivers/acpi/osl.c

index 00b5d08f6da8d67da2f67c9506d1164e72e7e0a7..f932c486836af8f204bc5f230e384b41f145eecb 100644 (file)
@@ -152,7 +152,7 @@ int acpi_request_vector(u32 int_type)
        return vector;
 }
 
-char *__acpi_map_table(unsigned long phys_addr, unsigned long size)
+char *__init __acpi_map_table(unsigned long phys_addr, unsigned long size)
 {
        return __va(phys_addr);
 }
index 0ca27c7b0e8db00335d47dc158557bf4915aede6..b595522dd799c8cd9e35be3dbe30ee0637d8845a 100644 (file)
@@ -106,7 +106,7 @@ enum acpi_irq_model_id acpi_irq_model = ACPI_IRQ_MODEL_PIC;
 #ifdef CONFIG_X86_64
 
 /* rely on all ACPI tables being in the direct mapping */
-char *__acpi_map_table(unsigned long phys_addr, unsigned long size)
+char *__init __acpi_map_table(unsigned long phys_addr, unsigned long size)
 {
        if (!phys_addr || !size)
                return NULL;
@@ -131,7 +131,7 @@ char *__acpi_map_table(unsigned long phys_addr, unsigned long size)
  * from the fixed base.  That's why we start at FIX_IO_APIC_BASE_END and
  * count idx down while incrementing the phys address.
  */
-char *__acpi_map_table(unsigned long phys, unsigned long size)
+char *__init __acpi_map_table(unsigned long phys, unsigned long size)
 {
        unsigned long base, offset, mapped_size;
        int idx;
index e3a673a008453dfda694aab503dad0c89b19cb1e..82525d9cccb08ace2288dfd7ece8cde5c06e2732 100644 (file)
@@ -211,7 +211,8 @@ acpi_physical_address __init acpi_os_get_root_pointer(void)
                return acpi_find_rsdp();
 }
 
-void __iomem *acpi_os_map_memory(acpi_physical_address phys, acpi_size size)
+void __iomem *__init_refok
+acpi_os_map_memory(acpi_physical_address phys, acpi_size size)
 {
        if (phys > ULONG_MAX) {
                printk(KERN_ERR PREFIX "Cannot map memory that high\n");