kernel/time.c: integer constant is too large for 'long' type warnings
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 :
If you need more infos let me know.
Regards,
Gabriel
Quoted 4 lines · Gabriel C
Hi,
with
CONFIG_HZ_300=yI see these warnings :
Quoted 8 lines
kernel/time.c: In function 'msecs_to_jiffies':kernel/time.c:472: warning: integer constant is too large for 'long' typekernel/time.c: In function 'usecs_to_jiffies':kernel/time.c:487: warning: integer constant is too large for 'long' typeI think this was introduced by :
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