linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] powerpc: Fix integer constant warning
@ 2010-06-07 20:49 Steve Best
  2010-06-08 13:12 ` David Howells
  0 siblings, 1 reply; 5+ messages in thread
From: Steve Best @ 2010-06-07 20:49 UTC (permalink / raw)
  To: linuxppc-dev, sfbest; +Cc: Steve Best

Fix ppc arch/powerpc/boot/addRamDisk.c:277: warning: integer constant
is too large for 'long' type

Signed-off-by: Steve Best <sfbest@us.ibm.com>

diff -purN linux.2.6.orig/arch/powerpc/boot/addRamDisk.c linux.2.6/arch/powerpc/boot/addRamDisk.c
--- linux.2.6.orig/arch/powerpc/boot/addRamDisk.c	2010-06-07 15:20:41.763844095 -0400
+++ linux.2.6/arch/powerpc/boot/addRamDisk.c	2010-06-07 15:27:15.165100339 -0400
@@ -9,7 +9,7 @@
 
 #define ElfHeaderSize  (64 * 1024)
 #define ElfPages  (ElfHeaderSize / 4096)
-#define KERNELBASE (0xc000000000000000)
+#define KERNELBASE (0xc000000000000000ULL)
 #define _ALIGN_UP(addr,size)	(((addr)+((size)-1))&(~((size)-1)))
 
 struct addr_range {

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-06-09 11:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-07 20:49 [PATCH] powerpc: Fix integer constant warning Steve Best
2010-06-08 13:12 ` David Howells
2010-06-08 13:55   ` Josh Boyer
2010-06-08 14:23   ` David Howells
2010-06-09 11:50   ` Steve Best

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).