Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[PATCH] efi: eliminate bad section references

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 <janitor@sternwelten.at>
Acked-by: Randy Dunlap <rddunlap@osdl.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

maximilian attems and committed by
Linus Torvalds
c41f5eb3 fca44804

+2 -2
+2 -2
arch/i386/kernel/efi.c
··· 46 46 47 47 struct efi efi; 48 48 EXPORT_SYMBOL(efi); 49 - static struct efi efi_phys __initdata; 50 - struct efi_memory_map memmap __initdata; 49 + static struct efi efi_phys; 50 + struct efi_memory_map memmap; 51 51 52 52 /* 53 53 * We require an early boot_ioremap mapping mechanism initially