aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorJiri Slaby <jirislaby@gmail.com>2009-03-02 05:34:27 -0500
committerIngo Molnar <mingo@elte.hu>2009-03-02 06:00:24 -0500
commit871d78c6d9fc83b2ad584788a175fcfca07a3666 (patch)
tree79b1cfc06f5cd57efeba7ed73c796883e364b455 /arch
parentfae176d6e03578fee7cfe948ff9ae81bf7ea0ef0 (diff)
x86_32: apic/es7000_32, fix section mismatch
Remove __init section placement for some functions, so that we don't get section mismatch warnings. [v2]: 2 of them were not caught by DEBUG_SECTION_MISMATCH=y magic. Fix it. Signed-off-by: Jiri Slaby <jirislaby@gmail.com> Cc: Jiri Slaby <jirislaby@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu> Cc: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/kernel/apic/es7000_32.c37
1 files changed, 17 insertions, 20 deletions
diff --git a/arch/x86/kernel/apic/es7000_32.c b/arch/x86/kernel/apic/es7000_32.c
index 4d8830ffe48..19588f2770e 100644
--- a/arch/x86/kernel/apic/es7000_32.c
+++ b/arch/x86/kernel/apic/es7000_32.c
@@ -163,7 +163,7 @@ static int wakeup_secondary_cpu_via_mip(int cpu, unsigned long eip)
163 return 0; 163 return 0;
164} 164}
165 165
166static int __init es7000_apic_is_cluster(void) 166static int es7000_apic_is_cluster(void)
167{ 167{
168 /* MPENTIUMIII */ 168 /* MPENTIUMIII */
169 if (boot_cpu_data.x86 == 6 && 169 if (boot_cpu_data.x86 == 6 &&
@@ -173,7 +173,7 @@ static int __init es7000_apic_is_cluster(void)
173 return 0; 173 return 0;
174} 174}
175 175
176static void __init setup_unisys(void) 176static void setup_unisys(void)
177{ 177{
178 /* 178 /*
179 * Determine the generation of the ES7000 currently running. 179 * Determine the generation of the ES7000 currently running.
@@ -192,7 +192,7 @@ static void __init setup_unisys(void)
192/* 192/*
193 * Parse the OEM Table: 193 * Parse the OEM Table:
194 */ 194 */
195static int __init parse_unisys_oem(char *oemptr) 195static int parse_unisys_oem(char *oemptr)
196{ 196{
197 int i; 197 int i;
198 int success = 0; 198 int success = 0;
@@ -254,7 +254,7 @@ static int __init parse_unisys_oem(char *oemptr)
254} 254}
255 255
256#ifdef CONFIG_ACPI 256#ifdef CONFIG_ACPI
257static int __init find_unisys_acpi_oem_table(unsigned long *oem_addr) 257static int find_unisys_acpi_oem_table(unsigned long *oem_addr)
258{ 258{
259 struct acpi_table_header *header = NULL; 259 struct acpi_table_header *header = NULL;
260 struct es7000_oem_table *table; 260 struct es7000_oem_table *table;
@@ -285,7 +285,7 @@ static int __init find_unisys_acpi_oem_table(unsigned long *oem_addr)
285 return 0; 285 return 0;
286} 286}
287 287
288static void __init unmap_unisys_acpi_oem_table(unsigned long oem_addr) 288static void unmap_unisys_acpi_oem_table(unsigned long oem_addr)
289{ 289{
290 if (!oem_addr) 290 if (!oem_addr)
291 return; 291 return;
@@ -303,10 +303,10 @@ static int es7000_check_dsdt(void)
303 return 0; 303 return 0;
304} 304}
305 305
306static int __initdata es7000_acpi_ret; 306static int es7000_acpi_ret;
307 307
308/* Hook from generic ACPI tables.c */ 308/* Hook from generic ACPI tables.c */
309static int __init es7000_acpi_madt_oem_check(char *oem_id, char *oem_table_id) 309static int es7000_acpi_madt_oem_check(char *oem_id, char *oem_table_id)
310{ 310{
311 unsigned long oem_addr = 0; 311 unsigned long oem_addr = 0;
312 int check_dsdt; 312 int check_dsdt;
@@ -333,8 +333,7 @@ static int __init es7000_acpi_madt_oem_check(char *oem_id, char *oem_table_id)
333 return ret && !es7000_apic_is_cluster(); 333 return ret && !es7000_apic_is_cluster();
334} 334}
335 335
336static int __init 336static int es7000_acpi_madt_oem_check_cluster(char *oem_id, char *oem_table_id)
337es7000_acpi_madt_oem_check_cluster(char *oem_id, char *oem_table_id)
338{ 337{
339 int ret = es7000_acpi_ret; 338 int ret = es7000_acpi_ret;
340 339
@@ -342,13 +341,12 @@ es7000_acpi_madt_oem_check_cluster(char *oem_id, char *oem_table_id)
342} 341}
343 342
344#else /* !CONFIG_ACPI: */ 343#else /* !CONFIG_ACPI: */
345static int __init es7000_acpi_madt_oem_check(char *oem_id, char *oem_table_id) 344static int es7000_acpi_madt_oem_check(char *oem_id, char *oem_table_id)
346{ 345{
347 return 0; 346 return 0;
348} 347}
349 348
350static int __init 349static int es7000_acpi_madt_oem_check_cluster(char *oem_id, char *oem_table_id)
351es7000_acpi_madt_oem_check_cluster(char *oem_id, char *oem_table_id)
352{ 350{
353 return 0; 351 return 0;
354} 352}
@@ -362,8 +360,7 @@ static void es7000_spin(int n)
362 rep_nop(); 360 rep_nop();
363} 361}
364 362
365static int __init 363static int es7000_mip_write(struct mip_reg *mip_reg)
366es7000_mip_write(struct mip_reg *mip_reg)
367{ 364{
368 int status = 0; 365 int status = 0;
369 int spin; 366 int spin;
@@ -396,7 +393,7 @@ es7000_mip_write(struct mip_reg *mip_reg)
396 return status; 393 return status;
397} 394}
398 395
399static void __init es7000_enable_apic_mode(void) 396static void es7000_enable_apic_mode(void)
400{ 397{
401 struct mip_reg es7000_mip_reg; 398 struct mip_reg es7000_mip_reg;
402 int mip_status; 399 int mip_status;
@@ -627,9 +624,9 @@ static int probe_es7000(void)
627 return 0; 624 return 0;
628} 625}
629 626
630static int __initdata es7000_mps_ret; 627static int es7000_mps_ret;
631static __init int 628static int es7000_mps_oem_check(struct mpc_table *mpc, char *oem,
632es7000_mps_oem_check(struct mpc_table *mpc, char *oem, char *productid) 629 char *productid)
633{ 630{
634 int ret = 0; 631 int ret = 0;
635 632
@@ -646,8 +643,8 @@ es7000_mps_oem_check(struct mpc_table *mpc, char *oem, char *productid)
646 return ret && !es7000_apic_is_cluster(); 643 return ret && !es7000_apic_is_cluster();
647} 644}
648 645
649static __init int 646static int es7000_mps_oem_check_cluster(struct mpc_table *mpc, char *oem,
650es7000_mps_oem_check_cluster(struct mpc_table *mpc, char *oem, char *productid) 647 char *productid)
651{ 648{
652 int ret = es7000_mps_ret; 649 int ret = es7000_mps_ret;
653 650