Thread (19 messages) 19 messages, 6 authors, 2008-08-01
STALE6509d

[PATCH 5/8] Silence warning in arch/powerpc/mm/ppc_mmu_32.c

From: Tony Breeds <hidden>
Date: 2008-07-31 03:51:44
Subsystem: linux for powerpc (32-bit and 64-bit), the rest · Maintainers: Madhavan Srinivasan, Michael Ellerman, Linus Torvalds

total_memory is a 'phys_addr_t', cast to unsigned long to silence
warning.

Signed-off-by: Tony Breeds <redacted>
---
 arch/powerpc/mm/ppc_mmu_32.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/powerpc/mm/ppc_mmu_32.c b/arch/powerpc/mm/ppc_mmu_32.c
index c53145f..9c19655 100644
--- a/arch/powerpc/mm/ppc_mmu_32.c
+++ b/arch/powerpc/mm/ppc_mmu_32.c
@@ -237,7 +237,7 @@ void __init MMU_init_hw(void)
 	Hash_end = (struct hash_pte *) ((unsigned long)Hash + Hash_size);
 
 	printk("Total memory = %ldMB; using %ldkB for hash table (at %p)\n",
-	       total_memory >> 20, Hash_size >> 10, Hash);
+	       (unsigned long)total_memory >> 20, Hash_size >> 10, Hash);
 
 
 	/*
-- 
1.5.6.3
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help