All of lore.kernel.org
 help / color / mirror / Atom feed
* [KJ] [PATCH] dm: uninitialize static variables
@ 2005-12-05 12:28 ` Nicolas Kaiser
  0 siblings, 0 replies; 17+ messages in thread
From: Nicolas Kaiser @ 2005-12-05 12:28 UTC (permalink / raw)
  To: dm-devel; +Cc: kernel-janitors

[-- Attachment #1: Type: text/plain, Size: 1036 bytes --]

uninitialize static variables initialized to 0, to make them go
to .bss instead of .data.

Signed-off-by: Nicolas Kaiser <nikai@nikai.net>
---
 dm.c     |    4 ++--
 kcopyd.c |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff -urpN a/drivers/md/dm.c b/drivers/md/dm.c
--- a/drivers/md/dm.c	2005-10-02 15:53:35.000000000 +0200
+++ b/drivers/md/dm.c	2005-12-05 00:01:26.000000000 +0100
@@ -20,8 +20,8 @@
 
 static const char *_name = DM_NAME;
 
-static unsigned int major = 0;
-static unsigned int _major = 0;
+static unsigned int major; /* = 0 */
+static unsigned int _major; /* = 0 */
 
 /*
  * One of these is allocated per bio.
diff -urpN a/drivers/md/kcopyd.c b/drivers/md/kcopyd.c
--- a/drivers/md/kcopyd.c	2005-10-02 15:53:35.000000000 +0200
+++ b/drivers/md/kcopyd.c	2005-12-05 00:00:33.000000000 +0100
@@ -588,7 +588,7 @@ static void client_del(struct kcopyd_cli
 }
 
 static DECLARE_MUTEX(kcopyd_init_lock);
-static int kcopyd_clients = 0;
+static int kcopyd_clients; /* = 0 */
 
 static int kcopyd_init(void)
 {

[-- Attachment #2: Type: text/plain, Size: 168 bytes --]

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/kernel-janitors

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2005-12-13 16:52 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-05 12:28 [KJ] [PATCH] dm: uninitialize static variables Nicolas Kaiser
2005-12-05 12:28 ` Nicolas Kaiser
2005-12-05 12:47 ` Carlos Manuel Duclos Vergara
2005-12-05 12:47   ` Carlos Manuel Duclos Vergara
2005-12-05 17:49   ` Nicolas Kaiser
2005-12-05 18:00     ` Nicolas Kaiser
2005-12-05 18:06     ` Carlos Manuel Duclos Vergara
2005-12-05 18:06       ` Carlos Manuel Duclos Vergara
2005-12-10 15:35     ` Alexey Dobriyan
2005-12-10 15:35       ` Alexey Dobriyan
2005-12-12  7:17     ` Jaco Kroon
2005-12-12  7:17       ` Jaco Kroon
2005-12-10 15:31 ` Alexey Dobriyan
2005-12-10 15:31   ` Alexey Dobriyan
2005-12-10 19:32   ` [KJ] [PATCH] dm: uninitialize static variables v2 Nicolas Kaiser
2005-12-10 19:32     ` Nicolas Kaiser
2005-12-13 16:52 ` [KJ] [PATCH] dm: uninitialize static variables Jesse Millan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.