Re: [PATCH] x86_64: use UL on TASK_SIZE
From: Andi Kleen
Date: Sun Jan 23 2005 - 06:00:29 EST
On Sat, Jan 22, 2005 at 10:56:17PM -0800, Randy.Dunlap wrote:
>
> Use UL on large constant (kills 3214 sparse warnings :)
>
> include/linux/sched.h:1150:18: warning: constant 0x800000000000 is so big it is long
Sounds more like a sparse bug to me. The C99 standard says the type
of the constant is the first in which the constant can be represented.
And that list includes unsigned long and even unsigned long long.
-Andi
-
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/