From: Nicolas Kaiser <nikai@nikai.net>
To: kernel-janitors@lists.osdl.org
Cc: dm-devel@redhat.com
Subject: [KJ] [PATCH] dm: uninitialize static variables v2
Date: Sat, 10 Dec 2005 20:32:26 +0100 [thread overview]
Message-ID: <20051210203226.297058d0@lucky.kitzblitz> (raw)
In-Reply-To: <20051210153129.GA2003@mipter.zuzino.mipt.ru>
[-- Attachment #1: Type: text/plain, Size: 1028 bytes --]
uninitialize static variables initialized to 0, to make them go
to .bss instead of .data.
Signed-off-by: Nicolas Kaiser <nikai@nikai.net>
---
drivers/md/dm.c | 4 ++--
drivers/md/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-10 20:24:13.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;
+static unsigned int _major;
/*
* 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-10 20:26:16.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;
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
WARNING: multiple messages have this Message-ID (diff)
From: Nicolas Kaiser <nikai@nikai.net>
To: kernel-janitors@lists.osdl.org
Cc: dm-devel@redhat.com
Subject: [KJ] [PATCH] dm: uninitialize static variables v2
Date: Sat, 10 Dec 2005 19:32:26 +0000 [thread overview]
Message-ID: <20051210203226.297058d0@lucky.kitzblitz> (raw)
In-Reply-To: <20051210153129.GA2003@mipter.zuzino.mipt.ru>
[-- Attachment #1: Type: text/plain, Size: 1028 bytes --]
uninitialize static variables initialized to 0, to make them go
to .bss instead of .data.
Signed-off-by: Nicolas Kaiser <nikai@nikai.net>
---
drivers/md/dm.c | 4 ++--
drivers/md/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-10 20:24:13.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;
+static unsigned int _major;
/*
* 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-10 20:26:16.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;
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
next prev parent reply other threads:[~2005-12-10 19:32 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
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 ` Nicolas Kaiser [this message]
2005-12-10 19:32 ` [KJ] [PATCH] dm: uninitialize static variables v2 Nicolas Kaiser
2005-12-13 16:52 ` [KJ] [PATCH] dm: uninitialize static variables Jesse Millan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20051210203226.297058d0@lucky.kitzblitz \
--to=nikai@nikai.net \
--cc=dm-devel@redhat.com \
--cc=kernel-janitors@lists.osdl.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.