x86/efi: Unexport add_efi_memmap variable
authorMathias Krause <minipli@googlemail.com>
Sun, 7 Sep 2014 17:42:15 +0000 (19:42 +0200)
committerMatt Fleming <matt.fleming@intel.com>
Fri, 3 Oct 2014 17:41:02 +0000 (18:41 +0100)
This variable was accidentally exported, even though it's only used in
this compilation unit and only during initialization.

Remove the bogus export, make the variable static instead and mark it
as __initdata.

Fixes: 200001eb140e ("x86 boot: only pick up additional EFI memmap...")
Cc: Paul Jackson <pj@sgi.com>
Signed-off-by: Mathias Krause <minipli@googlemail.com>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
arch/x86/include/asm/efi.h
arch/x86/platform/efi/efi.c

index 5375df6438181dd0ce9010f70bd4ab7066df07b0..ce7b1c5ff78ddd9ed8f767d34911c1412b1fd250 100644 (file)
@@ -88,7 +88,6 @@ extern void __iomem *efi_ioremap(unsigned long addr, unsigned long size,
 
 #define efi_in_nmi()   in_nmi()
 
-extern int add_efi_memmap;
 extern struct efi_scratch efi_scratch;
 extern void efi_set_executable(efi_memory_desc_t *md, bool executable);
 extern int efi_memblock_x86_reserve_range(void);
index f0be3d1da3de558f295d42472e4f85316deb1bc2..03938d17ad6d0de02d71a609a2747975b3694a15 100644 (file)
@@ -70,9 +70,7 @@ static efi_config_table_type_t arch_tables[] __initdata = {
 
 u64 efi_setup;         /* efi setup_data physical address */
 
-int add_efi_memmap;
-EXPORT_SYMBOL(add_efi_memmap);
-
+static int add_efi_memmap __initdata;
 static int __init setup_add_efi_memmap(char *arg)
 {
        add_efi_memmap = 1;
This page took 0.030326 seconds and 5 git commands to generate.