[PATCH] fix -Wundef warning for CONFIG_8xx

Olaf Hering olh at suse.de
Sun Aug 28 21:49:15 EST 2005


happens with allnoconfig + CONFIG_SWAP, introduced with -rc4

linux-2.6.12/arch/ppc/mm/init.c:565:7: warning: "CONFIG_8xx" is not defined

Signed-off-by: Olaf Hering <olh at suse.de>

 arch/ppc/mm/init.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

Index: linux-2.6.12/arch/ppc/mm/init.c
===================================================================
--- linux-2.6.12.orig/arch/ppc/mm/init.c
+++ linux-2.6.12/arch/ppc/mm/init.c
@@ -562,7 +562,7 @@ void flush_dcache_icache_page(struct pag
 #ifdef CONFIG_BOOKE
 	__flush_dcache_icache(kmap(page));
 	kunmap(page);
-#elif CONFIG_8xx
+#elif defined(CONFIG_8xx)
 	/* On 8xx there is no need to kmap since highmem is not supported */
 	__flush_dcache_icache(page_address(page)); 
 #else



More information about the Linuxppc-dev mailing list