From: Dave Olien <dmo@osdl.org>
To: thornber@redhat.com
Cc: dm-devel@redhat.com, linux-kernel@vger.kernel.org
Subject: [PATCH] trival patch to dm.c and dm.h
Date: Tue, 27 Apr 2004 19:06:55 -0700 [thread overview]
Message-ID: <20040428020655.GA21775@osdl.org> (raw)
dm_blk_dops is made static, and add __exit to local_exit(). Modified
local_init() declaration to look more like other uses of __init.
diff -ur linux-2.6.6-rc2-udm1-original/drivers/md/dm.c linux-2.6.6-rc2-udm1-patched/drivers/md/dm.c
--- linux-2.6.6-rc2-udm1-original/drivers/md/dm.c 2004-04-27 19:04:42.000000000 -0700
+++ linux-2.6.6-rc2-udm1-patched/drivers/md/dm.c 2004-04-27 19:04:24.000000000 -0700
@@ -93,7 +93,7 @@
static kmem_cache_t *_io_cache;
static kmem_cache_t *_tio_cache;
-static __init int local_init(void)
+static int __init local_init(void)
{
int r;
@@ -125,7 +125,7 @@
return 0;
}
-static void local_exit(void)
+static void __exit local_exit(void)
{
kmem_cache_destroy(_tio_cache);
kmem_cache_destroy(_io_cache);
@@ -663,6 +663,8 @@
return r;
}
+static struct block_device_operations dm_blk_dops;
+
/*
* Allocate and initialise a blank device with a given minor.
*/
@@ -1100,7 +1102,7 @@
return test_bit(DMF_SUSPENDED, &md->flags);
}
-struct block_device_operations dm_blk_dops = {
+static struct block_device_operations dm_blk_dops = {
.open = dm_blk_open,
.release = dm_blk_close,
.owner = THIS_MODULE
diff -ur linux-2.6.6-rc2-udm1-original/drivers/md/dm.h linux-2.6.6-rc2-udm1-patched/drivers/md/dm.h
--- linux-2.6.6-rc2-udm1-original/drivers/md/dm.h 2004-04-27 19:04:38.000000000 -0700
+++ linux-2.6.6-rc2-udm1-patched/drivers/md/dm.h 2004-04-27 19:04:27.000000000 -0700
@@ -31,8 +31,6 @@
#define SECTOR_SHIFT 9
-extern struct block_device_operations dm_blk_dops;
-
/*
* List of devices that a metadevice uses and should open/close.
*/
reply other threads:[~2004-04-28 2:05 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20040428020655.GA21775@osdl.org \
--to=dmo@osdl.org \
--cc=dm-devel@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=thornber@redhat.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox