From a3ba68f969b2407b6809a840f6ff45ab0eb06f84 Mon Sep 17 00:00:00 2001 From: Kumar Gala Date: Mon, 20 Oct 2008 03:16:55 +0000 Subject: 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: Kumar Gala Signed-off-by: Benjamin Herrenschmidt --- arch/powerpc/include/asm/page.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'arch/powerpc/include/asm/page.h') diff --git a/arch/powerpc/include/asm/page.h b/arch/powerpc/include/asm/page.h index 64e144505f65..120f4d494257 100644 --- a/arch/powerpc/include/asm/page.h +++ b/arch/powerpc/include/asm/page.h @@ -12,7 +12,9 @@ #include #include -#include +#ifndef __ASSEMBLY__ +#include +#endif /* * On PPC32 page size is 4K. For PPC64 we support either 4K or 64K software @@ -73,6 +75,7 @@ #if defined(CONFIG_RELOCATABLE) #ifndef __ASSEMBLY__ + extern phys_addr_t memstart_addr; extern phys_addr_t kernstart_addr; #endif -- cgit