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] [thread-next>] [day] [month] [year] [list]
Date:	Thu, 13 Mar 2008 16:43:09 +0100
From:	Bernd Petrovitsch <bernd@...mix.at>
To:	Andreas Westin XX <andreas.xx.westin@...csson.com>
Cc:	linux-kernel@...r.kernel.org
Subject: Re: checkpatch.pl and statics

On Don, 2008-03-13 at 16:09 +0100, Andreas Westin XX wrote:
[....]
> I ran checkpatch.pl on a piece of code I wrote and besides all the other
> warnings/errors it complained about a static pointer being initialised
> to NULL/0. I fixed it but I'm curious as to why this is not permitted ?

Because "uninitialized" data is automatically initialized wit 0. An
explicit initialization with 0/NULL wastes space in the kernel image.

	Bernd
-- 
Firmix Software GmbH                   http://www.firmix.at/
mobil: +43 664 4416156                 fax: +43 1 7890849-55
          Embedded Linux Development and Services


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