Commit a3ba68f9 authored by Kumar Gala's avatar Kumar Gala Committed by Benjamin Herrenschmidt

powerpc: Fix build issue with CONFIG_RELOCATABLE=y

There are two issues when we enable CONFIG_RELOCATABLE.  The first is due
to the fact that phys_addr_t is now defined in linux/types.h.  The second
is due to the fact that the DMA code changes expose memstart_addr to
prom_init.c
Signed-off-by: default avatarKumar Gala <galak@kernel.crashing.org>
Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
parent 0721357d
...@@ -12,7 +12,9 @@ ...@@ -12,7 +12,9 @@
#include <asm/asm-compat.h> #include <asm/asm-compat.h>
#include <asm/kdump.h> #include <asm/kdump.h>
#include <asm/types.h> #ifndef __ASSEMBLY__
#include <linux/types.h>
#endif
/* /*
* On PPC32 page size is 4K. For PPC64 we support either 4K or 64K software * On PPC32 page size is 4K. For PPC64 we support either 4K or 64K software
...@@ -73,6 +75,7 @@ ...@@ -73,6 +75,7 @@
#if defined(CONFIG_RELOCATABLE) #if defined(CONFIG_RELOCATABLE)
#ifndef __ASSEMBLY__ #ifndef __ASSEMBLY__
extern phys_addr_t memstart_addr; extern phys_addr_t memstart_addr;
extern phys_addr_t kernstart_addr; extern phys_addr_t kernstart_addr;
#endif #endif
......
...@@ -20,7 +20,7 @@ WHITELIST="add_reloc_offset __bss_start __bss_stop copy_and_flush ...@@ -20,7 +20,7 @@ WHITELIST="add_reloc_offset __bss_start __bss_stop copy_and_flush
_end enter_prom memcpy memset reloc_offset __secondary_hold _end enter_prom memcpy memset reloc_offset __secondary_hold
__secondary_hold_acknowledge __secondary_hold_spinloop __start __secondary_hold_acknowledge __secondary_hold_spinloop __start
strcmp strcpy strlcpy strlen strncmp strstr logo_linux_clut224 strcmp strcpy strlcpy strlen strncmp strstr logo_linux_clut224
reloc_got2 kernstart_addr" reloc_got2 kernstart_addr memstart_addr"
NM="$1" NM="$1"
OBJ="$2" OBJ="$2"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment