Skip to contentSkip to conversation

fix -Wundef warning for CONFIG_8xx

PATCH New Olaf Hering 1 participant 1 message Aug 28, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix -Wundef warning for CONFIG_8xx

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

 arch/ppc/mm/init.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)
arch/ppc/mm/init.c +1 -1
Index: 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