linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] device-mapper: Some missing statics
@ 2005-05-04 17:15 Alasdair G Kergon
  0 siblings, 0 replies; only message in thread
From: Alasdair G Kergon @ 2005-05-04 17:15 UTC (permalink / raw)
  To: Andrew Morton; +Cc: linux-kernel, Adrian Bunk

This patch makes some needlessly global code static.

Signed-Off-By: Alasdair G Kergon <agk@redhat.com>
Signed-off-by: Adrian Bunk <bunk@stusta.de>

--- diff/drivers/md/dm-hw-handler.c	2005-04-21 18:38:05.000000000 +0100
+++ source/drivers/md/dm-hw-handler.c	2005-04-21 19:03:59.000000000 +0100
@@ -23,7 +23,7 @@
 static LIST_HEAD(_hw_handlers);
 static DECLARE_RWSEM(_hwh_lock);
 
-struct hwh_internal *__find_hw_handler_type(const char *name)
+static struct hwh_internal *__find_hw_handler_type(const char *name)
 {
 	struct hwh_internal *hwhi;
 
--- diff/drivers/md/dm-path-selector.c	2005-04-04 17:38:05.000000000 +0100
+++ source/drivers/md/dm-path-selector.c	2005-04-21 19:03:59.000000000 +0100
@@ -26,7 +26,7 @@
 static LIST_HEAD(_path_selectors);
 static DECLARE_RWSEM(_ps_lock);
 
-struct ps_internal *__find_path_selector_type(const char *name)
+static struct ps_internal *__find_path_selector_type(const char *name)
 {
 	struct ps_internal *psi;
 
--- diff/drivers/md/dm-table.c	2005-04-04 17:39:42.000000000 +0100
+++ source/drivers/md/dm-table.c	2005-04-21 19:03:59.000000000 +0100
@@ -242,7 +242,7 @@
 	}
 }
 
-void table_destroy(struct dm_table *t)
+static void table_destroy(struct dm_table *t)
 {
 	unsigned int i;
 
--- diff/drivers/md/dm-zero.c	2005-04-04 17:38:23.000000000 +0100
+++ source/drivers/md/dm-zero.c	2005-04-21 19:03:59.000000000 +0100
@@ -55,7 +55,7 @@
 	.map    = zero_map,
 };
 
-int __init dm_zero_init(void)
+static int __init dm_zero_init(void)
 {
 	int r = dm_register_target(&zero_target);
 
@@ -65,7 +65,7 @@
 	return r;
 }
 
-void __exit dm_zero_exit(void)
+static void __exit dm_zero_exit(void)
 {
 	int r = dm_unregister_target(&zero_target);
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-05-04 17:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-04 17:15 [PATCH] device-mapper: Some missing statics Alasdair G Kergon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).