[PATCH] x86_64: use UL on TASK_SIZE

From: Randy.Dunlap
Date: Sun Jan 23 2005 - 02:11:16 EST



Use UL on large constant (kills 3214 sparse warnings :)

include/linux/sched.h:1150:18: warning: constant 0x800000000000 is so big it is long

Signed-off-by: Randy Dunlap <rddunlap@xxxxxxxx>

diffstat:=
include/asm-x86_64/processor.h | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)

diff -Naurp ./include/asm-x86_64/processor.h~proc_task_size ./include/asm-x86_64/processor.h
--- ./include/asm-x86_64/processor.h~proc_task_size 2005-01-22 19:06:33.765150024 -0800
+++ ./include/asm-x86_64/processor.h 2005-01-22 21:40:48.884158072 -0800
@@ -162,7 +162,7 @@ static inline void clear_in_cr4 (unsigne
/*
* User space process size. 47bits.
*/
-#define TASK_SIZE (0x800000000000)
+#define TASK_SIZE (0x800000000000UL)

/* This decides where the kernel will search for a free chunk of vm
* space during mmap's.

--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/