(1/4) ieee1394 - uninitialize static variables
PATCH 1/1 (1/4) ieee1394 - uninitialize static variables
Hi.
One of the tasks at http://janitor.kernelnewbies.org/TODO
is described as
"
uninitialize static variables initialized to 0, to make it go to the .bss, instead of .data.
"
To proof that it is still guaranteed that those variables will be initialized to zero
Tom Bradley <[email protected]> (on the kernel-janitors mailing list) wrote
"
the default for gcc is `-fzero-initialized-in-bss', the kernel makefile does not change this therefore bss is zeroed, this is documented in the gcc manpage.
"
and David P Howell <[email protected]> added that "
By definition .bss is always zero'ed by the implementation. "
This patch uninitializes a static int initialized to 0.
--- drivers/ieee1394/ieee1394_core.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-)
drivers/ieee1394/ieee1394_core.c +1 -1
@@ -52,7 +52,7 @@/* * Disable the nodemgr detection and config rom reading functionality. */ -static int disable_nodemgr =0 ; +static int disable_nodemgr;module_param (disable_nodemgr, int,0444 );MODULE_PARM_DESC (disable_nodemgr,"Disable nodemgr functionality." );
Signature · 1 line
Carlo Perassi - http://www.linux.it/~carlo/
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors