efi: eliminate bad section references
PATCH 140/198 efi: eliminate bad section references
From: maximilian attems <[email protected]>
Randy please double check especially this one. there may be a better solution.
Fix efi section references:
remove __initdata for struct efi efi_phys
and struct efi_memory_map memmap
Error: ./arch/i386/kernel/efi.o .text refers to 000000d3 R_386_32 .init.data
Error: ./arch/i386/kernel/efi.o .text refers to 000000ff R_386_32 .init.data
efi_memmap_walk (which is not __init nor static) accesses both efi_phys and memmap.
Signed-off-by maximilian attems <[email protected]>
Acked-by Randy Dunlap <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
25-akpm/arch/i386/kernel/efi.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
arch/i386/kernel/efi.c renamed from arch/i386/kernel/efi.c~efi-eliminate-bad-section-references +2 -2
@@ -46,8 +46,8 @@ extern efi_status_t asmlinkage efi_call_struct efi efi;EXPORT_SYMBOL (efi); -static struct efi efi_phys__initdata ; -struct efi_memory_map memmap__initdata ; +static struct efi efi_phys; +struct efi_memory_map memmap;/* * We require an early boot_ioremap mapping mechanism initially
_