x86: Fix false positive section mismatch in apic.
PATCH 1/1 x86: Fix false positive section mismatch in apic.
Sorry guys , for being late. My system was out of order for a week.
x86: Fix false positive section mismatch warnings in the apic code
----
arch/x86/kernel/apic/es7000_32.c +4 -4
@@ -254,7 +254,7 @@ static int parse_unisys_oem(char *oemptr }#ifdef CONFIG_ACPI -static int find_unisys_acpi_oem_table (unsigned long *oem_addr) +static int __init find_unisys_acpi_oem_table (unsigned long *oem_addr) {struct acpi_table_header *header =NULL ;struct es7000_oem_table *table;
@@ -285,7 +285,7 @@ static int find_unisys_acpi_oem_table(unreturn 0 ; } -static void unmap_unisys_acpi_oem_table (unsigned long oem_addr) +static void __init unmap_unisys_acpi_oem_table (unsigned long oem_addr) {if (!oem_addr)return ;
@@ -306,7 +306,7 @@ static int es7000_check_dsdt(void)static int es7000_acpi_ret;/* Hook from generic ACPI tables.c */ -static int es7000_acpi_madt_oem_check (char *oem_id,char *oem_table_id) +static int __init es7000_acpi_madt_oem_check (char *oem_id,char *oem_table_id) {unsigned long oem_addr =0 ;int check_dsdt;
@@ -717,7 +717,7 @@ struct apic apic_es7000_cluster = { .safe_wait_icr_idle = native_safe_apic_wait_icr_idle, }; -struct apic apic_es7000 = { +struct apic __refdata apic_es7000 = { .name ="es7000" , .probe = probe_es7000,
Quoted 8 lines · Rakib Mullick
Sorry guys , for being late. My system was out of order for a week.
x86: Fix false positive section mismatch warnings in the apic code
----
Signed-off-by Sam Ravnborg <[email protected]>Signed-off-by Rakib Mullick <[email protected]>
Ok, since the patch came from Sam i applied it as a From: Sam patch
- and added this comment above your signoff line:
To denote your modifications on it. Hope this is fine with everyone.
Ingo
[tip:x86/urgent] x86: Fix false positive section mismatch warnings in the apic code
In reply to Rakib MullickCommit-ID: b74d446f1f337e3fe906169a3266cb65ffa4179e Gitweb: http://git.kernel.org/tip/b74d446f1f337e3fe906169a3266cb65ffa4179e Author: Sam Ravnborg <[email protected]> AuthorDate: Sat, 9 May 2009 15:35:10 +0600 Committer: Ingo Molnar <[email protected]> CommitDate: Sun, 10 May 2009 09:26:54 +0200
x86: Fix false positive section mismatch warnings in the apic code
[ Impact: reduce kernel image size a bit, annotate away warnings ]
LKML-Reference: <[email protected]>
--- arch/x86/kernel/apic/es7000_32.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-)
arch/x86/kernel/apic/es7000_32.c +4 -4
@@ -254,7 +254,7 @@ static int parse_unisys_oem(char *oemptr) }#ifdef CONFIG_ACPI -static int find_unisys_acpi_oem_table (unsigned long *oem_addr) +static int __init find_unisys_acpi_oem_table (unsigned long *oem_addr) {struct acpi_table_header *header =NULL ;struct es7000_oem_table *table;
@@ -285,7 +285,7 @@ static int find_unisys_acpi_oem_table(unsigned long *oem_addr)return 0 ; } -static void unmap_unisys_acpi_oem_table (unsigned long oem_addr) +static void __init unmap_unisys_acpi_oem_table (unsigned long oem_addr) {if (!oem_addr)return ;
@@ -306,7 +306,7 @@ static int es7000_check_dsdt(void)static int es7000_acpi_ret;/* Hook from generic ACPI tables.c */ -static int es7000_acpi_madt_oem_check (char *oem_id,char *oem_table_id) +static int __init es7000_acpi_madt_oem_check (char *oem_id,char *oem_table_id) {unsigned long oem_addr =0 ;int check_dsdt;
@@ -717,7 +717,7 @@ struct apic apic_es7000_cluster = { .safe_wait_icr_idle = native_safe_apic_wait_icr_idle, }; -struct apic apic_es7000 = { +struct apic __refdata apic_es7000 = { .name ="es7000" , .probe = probe_es7000,