Re: [PATCH] kernel/time.c: Silence gcc warning 'integer constantto large for long type'

From: H. Peter Anvin
Date: Fri May 02 2008 - 18:47:14 EST


Linus Torvalds wrote:

Make the timeconst.h file just contain sane macros. No preprocessor games etc. Just make it say

#define USEC_TO_HZ_MUL32 ..correct-value-here..

and not even generate macros with values that cannot be used (ie >64 bits).


OK. I was being too general, I guess (holding out for stuff like doing this in 64-bit space which would require 128-bit constants, which gcc *does* support on 64-bit platforms.)

I'll have a clean patch shortly.

-hpa
--
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/