瀏覽代碼

x86: Fix false positive section mismatch warnings in the apic code

[ Impact: reduce kernel image size a bit, annotate away warnings ]

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
[ modified and tested it ]
Signed-off-by: Rakib Mullick <rakib.mullick@gmail.com>
Cc: Marcin Slusarz <marcin.slusarz@gmail.com>
LKML-Reference: <b9df5fa10905090235s4bfd26a8o979f93809c9727ad@mail.gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Sam Ravnborg 16 年之前
父節點
當前提交
b74d446f1f
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      arch/x86/kernel/apic/es7000_32.c

+ 4 - 4
arch/x86/kernel/apic/es7000_32.c

@@ -254,7 +254,7 @@ static int parse_unisys_oem(char *oemptr)
 }
 }
 
 
 #ifdef CONFIG_ACPI
 #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 acpi_table_header *header = NULL;
 	struct es7000_oem_table *table;
 	struct es7000_oem_table *table;
@@ -285,7 +285,7 @@ static int find_unisys_acpi_oem_table(unsigned long *oem_addr)
 	return 0;
 	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)
 	if (!oem_addr)
 		return;
 		return;
@@ -306,7 +306,7 @@ static int es7000_check_dsdt(void)
 static int es7000_acpi_ret;
 static int es7000_acpi_ret;
 
 
 /* Hook from generic ACPI tables.c */
 /* 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;
 	unsigned long oem_addr = 0;
 	int check_dsdt;
 	int check_dsdt;
@@ -717,7 +717,7 @@ struct apic apic_es7000_cluster = {
 	.safe_wait_icr_idle		= native_safe_apic_wait_icr_idle,
 	.safe_wait_icr_idle		= native_safe_apic_wait_icr_idle,
 };
 };
 
 
-struct apic apic_es7000 = {
+struct apic __refdata apic_es7000 = {
 
 
 	.name				= "es7000",
 	.name				= "es7000",
 	.probe				= probe_es7000,
 	.probe				= probe_es7000,