Re: kernel/time.c: integer constant is too large for 'long' typewarnings

From: H. Peter Anvin
Date: Fri Apr 04 2008 - 14:06:41 EST


Gabriel C wrote:
Hi,

with CONFIG_HZ_300=y I see these warnings :

kernel/time.c: In function 'msecs_to_jiffies': kernel/time.c:472: warning: integer constant is too large for 'long' type kernel/time.c: In function 'usecs_to_jiffies': kernel/time.c:487: warning: integer constant is too large for 'long' type

I think this was introduced by :

http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=bdc807871d58285737d50dc6163d0feb72cb0dc2

If you need more infos let me know.


There is a patch for this, already, but the bikeshed painters have been whining about it.

The code is correct; it is a nuisance warning only.

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