Răsfoiți Sursa

kbuild: remove hardcoded apic_es7000 from modpost

Replace the hardcoded variable name apic_es7000 in modpost
with a __initdata_refok marker.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Sam Ravnborg 18 ani în urmă
părinte
comite
d3ab78560b
2 a modificat fișierele cu 1 adăugiri și 2 ștergeri
  1. 1 1
      arch/i386/mach-generic/es7000.c
  2. 0 1
      scripts/mod/modpost.c

+ 1 - 1
arch/i386/mach-generic/es7000.c

@@ -66,4 +66,4 @@ static int __init acpi_madt_oem_check(char *oem_id, char *oem_table_id)
 }
 }
 #endif
 #endif
 
 
-struct genapic apic_es7000 = APIC_INIT("es7000", probe_es7000);
+struct genapic __initdata_refok apic_es7000 = APIC_INIT("es7000", probe_es7000);

+ 0 - 1
scripts/mod/modpost.c

@@ -647,7 +647,6 @@ static int secref_whitelist(const char *modname, const char *tosec,
 		"_probe",
 		"_probe",
 		"_probe_one",
 		"_probe_one",
 		"_console",
 		"_console",
-		"apic_es7000",
 		NULL
 		NULL
 	};
 	};