[PATCH] [ppc64] iseries build fixes

Anton Blanchard anton at samba.org
Mon Sep 13 21:08:37 EST 2004


Fix one compile warning and one build warning on iseries.

Signed-off-by: Anton Blanchard <anton at samba.org>

diff -puN arch/ppc64/mm/init.c~fix_iseries arch/ppc64/mm/init.c
--- 2.6.9-rc1-mm5/arch/ppc64/mm/init.c~fix_iseries	2004-09-13 19:51:27.220930624 +1000
+++ 2.6.9-rc1-mm5-anton/arch/ppc64/mm/init.c	2004-09-13 19:51:27.246928626 +1000
@@ -534,7 +534,9 @@ arch_initcall(mmu_context_init);
  */
 void __init mm_init_ppc64(void)
 {
+#ifndef CONFIG_PPC_ISERIES
 	unsigned long i;
+#endif
 
 	ppc64_boot_msg(0x100, "MM Init");
 
diff -puN include/asm-ppc64/page.h~fix_iseries include/asm-ppc64/page.h
--- 2.6.9-rc1-mm5/include/asm-ppc64/page.h~fix_iseries	2004-09-13 19:51:27.225930240 +1000
+++ 2.6.9-rc1-mm5-anton/include/asm-ppc64/page.h	2004-09-13 19:51:27.248928472 +1000
@@ -201,9 +201,9 @@ extern int page_is_ram(unsigned long pfn
 /*             to change!                               */
 #define PAGE_OFFSET     ASM_CONST(0xC000000000000000)
 #define KERNELBASE      PAGE_OFFSET
-#define VMALLOCBASE     0xD000000000000000UL
-#define IOREGIONBASE    0xE000000000000000UL
-#define EEHREGIONBASE   0xA000000000000000UL
+#define VMALLOCBASE     ASM_CONST(0xD000000000000000)
+#define IOREGIONBASE    ASM_CONST(0xE000000000000000)
+#define EEHREGIONBASE   ASM_CONST(0xA000000000000000)
 
 #define IO_REGION_ID       (IOREGIONBASE>>REGION_SHIFT)
 #define EEH_REGION_ID      (EEHREGIONBASE>>REGION_SHIFT)
_



More information about the Linuxppc64-dev mailing list