Skip to content

Commit

Permalink
[PATCH] efi: eliminate bad section references
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
maximilian attems authored and Linus Torvalds committed Apr 16, 2005
1 parent fca4480 commit c41f5eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/i386/kernel/efi.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ extern efi_status_t asmlinkage efi_call_phys(void *, ...);

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
Expand Down

0 comments on commit c41f5eb

Please sign in to comment.