lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Fri, 04 Apr 2008 11:06:08 -0700
From:	"H. Peter Anvin" <hpa@...or.com>
To:	Gabriel C <nix.or.die@...glemail.com>
CC:	Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
	Gabriel C <crazy@...galware.org>
Subject: Re: kernel/time.c: integer constant is too large for 'long' type
 warnings

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@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ