* kernel/time.c: integer constant is too large for 'long' type warnings
@ 2008-04-04 16:44 Gabriel C
2008-04-04 18:06 ` H. Peter Anvin
0 siblings, 1 reply; 2+ messages in thread
From: Gabriel C @ 2008-04-04 16:44 UTC (permalink / raw)
To: Linux Kernel Mailing List; +Cc: H. Peter Anvin, Gabriel C
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.
Regards,
Gabriel
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: kernel/time.c: integer constant is too large for 'long' type warnings
2008-04-04 16:44 kernel/time.c: integer constant is too large for 'long' type warnings Gabriel C
@ 2008-04-04 18:06 ` H. Peter Anvin
0 siblings, 0 replies; 2+ messages in thread
From: H. Peter Anvin @ 2008-04-04 18:06 UTC (permalink / raw)
To: Gabriel C; +Cc: Linux Kernel Mailing List, Gabriel C
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-04-04 18:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-04 16:44 kernel/time.c: integer constant is too large for 'long' type warnings Gabriel C
2008-04-04 18:06 ` H. Peter Anvin
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).