Commit 871d78c6 authored by Jiri Slaby's avatar Jiri Slaby Committed by Ingo Molnar

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: default avatarJiri Slaby <jirislaby@gmail.com>
Cc: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
Cc: H. Peter Anvin <hpa@zytor.com>
parent fae176d6
...@@ -163,7 +163,7 @@ static int wakeup_secondary_cpu_via_mip(int cpu, unsigned long eip) ...@@ -163,7 +163,7 @@ static int wakeup_secondary_cpu_via_mip(int cpu, unsigned long eip)
return 0; return 0;
} }
static int __init es7000_apic_is_cluster(void) static int es7000_apic_is_cluster(void)
{ {
/* MPENTIUMIII */ /* MPENTIUMIII */
if (boot_cpu_data.x86 == 6 && if (boot_cpu_data.x86 == 6 &&
...@@ -173,7 +173,7 @@ static int __init es7000_apic_is_cluster(void) ...@@ -173,7 +173,7 @@ static int __init es7000_apic_is_cluster(void)
return 0; return 0;
} }
static void __init setup_unisys(void) static void setup_unisys(void)
{ {
/* /*
* Determine the generation of the ES7000 currently running. * Determine the generation of the ES7000 currently running.
...@@ -192,7 +192,7 @@ static void __init setup_unisys(void) ...@@ -192,7 +192,7 @@ static void __init setup_unisys(void)
/* /*
* Parse the OEM Table: * Parse the OEM Table:
*/ */
static int __init parse_unisys_oem(char *oemptr) static int parse_unisys_oem(char *oemptr)
{ {
int i; int i;
int success = 0; int success = 0;
...@@ -254,7 +254,7 @@ static int __init parse_unisys_oem(char *oemptr) ...@@ -254,7 +254,7 @@ static int __init parse_unisys_oem(char *oemptr)
} }
#ifdef CONFIG_ACPI #ifdef CONFIG_ACPI
static int __init find_unisys_acpi_oem_table(unsigned long *oem_addr) static int find_unisys_acpi_oem_table(unsigned long *oem_addr)
{ {
struct acpi_table_header *header = NULL; struct acpi_table_header *header = NULL;
struct es7000_oem_table *table; struct es7000_oem_table *table;
...@@ -285,7 +285,7 @@ static int __init find_unisys_acpi_oem_table(unsigned long *oem_addr) ...@@ -285,7 +285,7 @@ static int __init find_unisys_acpi_oem_table(unsigned long *oem_addr)
return 0; return 0;
} }
static void __init unmap_unisys_acpi_oem_table(unsigned long oem_addr) static void unmap_unisys_acpi_oem_table(unsigned long oem_addr)
{ {
if (!oem_addr) if (!oem_addr)
return; return;
...@@ -303,10 +303,10 @@ static int es7000_check_dsdt(void) ...@@ -303,10 +303,10 @@ static int es7000_check_dsdt(void)
return 0; return 0;
} }
static int __initdata es7000_acpi_ret; static int es7000_acpi_ret;
/* Hook from generic ACPI tables.c */ /* Hook from generic ACPI tables.c */
static int __init es7000_acpi_madt_oem_check(char *oem_id, char *oem_table_id) static int es7000_acpi_madt_oem_check(char *oem_id, char *oem_table_id)
{ {
unsigned long oem_addr = 0; unsigned long oem_addr = 0;
int check_dsdt; int check_dsdt;
...@@ -333,8 +333,7 @@ static int __init es7000_acpi_madt_oem_check(char *oem_id, char *oem_table_id) ...@@ -333,8 +333,7 @@ static int __init es7000_acpi_madt_oem_check(char *oem_id, char *oem_table_id)
return ret && !es7000_apic_is_cluster(); return ret && !es7000_apic_is_cluster();
} }
static int __init static int es7000_acpi_madt_oem_check_cluster(char *oem_id, char *oem_table_id)
es7000_acpi_madt_oem_check_cluster(char *oem_id, char *oem_table_id)
{ {
int ret = es7000_acpi_ret; int ret = es7000_acpi_ret;
...@@ -342,13 +341,12 @@ es7000_acpi_madt_oem_check_cluster(char *oem_id, char *oem_table_id) ...@@ -342,13 +341,12 @@ es7000_acpi_madt_oem_check_cluster(char *oem_id, char *oem_table_id)
} }
#else /* !CONFIG_ACPI: */ #else /* !CONFIG_ACPI: */
static int __init es7000_acpi_madt_oem_check(char *oem_id, char *oem_table_id) static int es7000_acpi_madt_oem_check(char *oem_id, char *oem_table_id)
{ {
return 0; return 0;
} }
static int __init static int es7000_acpi_madt_oem_check_cluster(char *oem_id, char *oem_table_id)
es7000_acpi_madt_oem_check_cluster(char *oem_id, char *oem_table_id)
{ {
return 0; return 0;
} }
...@@ -362,8 +360,7 @@ static void es7000_spin(int n) ...@@ -362,8 +360,7 @@ static void es7000_spin(int n)
rep_nop(); rep_nop();
} }
static int __init static int es7000_mip_write(struct mip_reg *mip_reg)
es7000_mip_write(struct mip_reg *mip_reg)
{ {
int status = 0; int status = 0;
int spin; int spin;
...@@ -396,7 +393,7 @@ es7000_mip_write(struct mip_reg *mip_reg) ...@@ -396,7 +393,7 @@ es7000_mip_write(struct mip_reg *mip_reg)
return status; return status;
} }
static void __init es7000_enable_apic_mode(void) static void es7000_enable_apic_mode(void)
{ {
struct mip_reg es7000_mip_reg; struct mip_reg es7000_mip_reg;
int mip_status; int mip_status;
...@@ -627,9 +624,9 @@ static int probe_es7000(void) ...@@ -627,9 +624,9 @@ static int probe_es7000(void)
return 0; return 0;
} }
static int __initdata es7000_mps_ret; static int es7000_mps_ret;
static __init int static int es7000_mps_oem_check(struct mpc_table *mpc, char *oem,
es7000_mps_oem_check(struct mpc_table *mpc, char *oem, char *productid) char *productid)
{ {
int ret = 0; int ret = 0;
...@@ -646,8 +643,8 @@ es7000_mps_oem_check(struct mpc_table *mpc, char *oem, char *productid) ...@@ -646,8 +643,8 @@ es7000_mps_oem_check(struct mpc_table *mpc, char *oem, char *productid)
return ret && !es7000_apic_is_cluster(); return ret && !es7000_apic_is_cluster();
} }
static __init int static int es7000_mps_oem_check_cluster(struct mpc_table *mpc, char *oem,
es7000_mps_oem_check_cluster(struct mpc_table *mpc, char *oem, char *productid) char *productid)
{ {
int ret = es7000_mps_ret; int ret = es7000_mps_ret;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment