Skip to content

Commit

Permalink
powerpc: Fix build issue with CONFIG_RELOCATABLE=y
Browse files Browse the repository at this point in the history
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: Kumar Gala <galak@kernel.crashing.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
  • Loading branch information
Kumar Gala authored and Benjamin Herrenschmidt committed Oct 21, 2008
1 parent 0721357 commit a3ba68f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion arch/powerpc/include/asm/page.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@

#include <asm/asm-compat.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
Expand Down Expand Up @@ -73,6 +75,7 @@

#if defined(CONFIG_RELOCATABLE)
#ifndef __ASSEMBLY__

extern phys_addr_t memstart_addr;
extern phys_addr_t kernstart_addr;
#endif
Expand Down
2 changes: 1 addition & 1 deletion arch/powerpc/kernel/prom_init_check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ WHITELIST="add_reloc_offset __bss_start __bss_stop copy_and_flush
_end enter_prom memcpy memset reloc_offset __secondary_hold
__secondary_hold_acknowledge __secondary_hold_spinloop __start
strcmp strcpy strlcpy strlen strncmp strstr logo_linux_clut224
reloc_got2 kernstart_addr"
reloc_got2 kernstart_addr memstart_addr"

NM="$1"
OBJ="$2"
Expand Down

0 comments on commit a3ba68f

Please sign in to comment.