aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@novell.com>2007-12-13 03:33:59 -0500
committerLen Brown <len.brown@intel.com>2007-12-13 17:17:50 -0500
commit2fdf07417e57136cf6baedf9508e2169a059ebea (patch)
treec413d5b49684f9320825405b002b129766e6aa17
parentda8cadb31b82c9d41fc593c8deab6aa20b162d6b (diff)
acpi: make __acpi_map_table() and __init function
.. 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>
-rw-r--r--arch/ia64/kernel/acpi.c2
-rw-r--r--arch/x86/kernel/acpi/boot.c4
-rw-r--r--drivers/acpi/osl.c3
3 files changed, 5 insertions, 4 deletions
diff --git a/arch/ia64/kernel/acpi.c b/arch/ia64/kernel/acpi.c
index 00b5d08f6da8..f932c486836a 100644
--- a/arch/ia64/kernel/acpi.c
+++ b/arch/ia64/kernel/acpi.c
@@ -152,7 +152,7 @@ int acpi_request_vector(u32 int_type)
152 return vector; 152 return vector;
153} 153}
154 154
155char *__acpi_map_table(unsigned long phys_addr, unsigned long size) 155char *__init __acpi_map_table(unsigned long phys_addr, unsigned long size)
156{ 156{
157 return __va(phys_addr); 157 return __va(phys_addr);
158} 158}
diff --git a/arch/x86/kernel/acpi/boot.c b/arch/x86/kernel/acpi/boot.c
index 0ca27c7b0e8d..b595522dd799 100644
--- a/arch/x86/kernel/acpi/boot.c
+++ b/arch/x86/kernel/acpi/boot.c
@@ -106,7 +106,7 @@ enum acpi_irq_model_id acpi_irq_model = ACPI_IRQ_MODEL_PIC;
106#ifdef CONFIG_X86_64 106#ifdef CONFIG_X86_64
107 107
108/* rely on all ACPI tables being in the direct mapping */ 108/* rely on all ACPI tables being in the direct mapping */
109char *__acpi_map_table(unsigned long phys_addr, unsigned long size) 109char *__init __acpi_map_table(unsigned long phys_addr, unsigned long size)
110{ 110{
111 if (!phys_addr || !size) 111 if (!phys_addr || !size)
112 return NULL; 112 return NULL;
@@ -131,7 +131,7 @@ char *__acpi_map_table(unsigned long phys_addr, unsigned long size)
131 * from the fixed base. That's why we start at FIX_IO_APIC_BASE_END and 131 * from the fixed base. That's why we start at FIX_IO_APIC_BASE_END and
132 * count idx down while incrementing the phys address. 132 * count idx down while incrementing the phys address.
133 */ 133 */
134char *__acpi_map_table(unsigned long phys, unsigned long size) 134char *__init __acpi_map_table(unsigned long phys, unsigned long size)
135{ 135{
136 unsigned long base, offset, mapped_size; 136 unsigned long base, offset, mapped_size;
137 int idx; 137 int idx;
diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c
index e3a673a00845..82525d9cccb0 100644
--- a/drivers/acpi/osl.c
+++ b/drivers/acpi/osl.c
@@ -211,7 +211,8 @@ acpi_physical_address __init acpi_os_get_root_pointer(void)
211 return acpi_find_rsdp(); 211 return acpi_find_rsdp();
212} 212}
213 213
214void __iomem *acpi_os_map_memory(acpi_physical_address phys, acpi_size size) 214void __iomem *__init_refok
215acpi_os_map_memory(acpi_physical_address phys, acpi_size size)
215{ 216{
216 if (phys > ULONG_MAX) { 217 if (phys > ULONG_MAX) {
217 printk(KERN_ERR PREFIX "Cannot map memory that high\n"); 218 printk(KERN_ERR PREFIX "Cannot map memory that high\n");