[PATCH] device-mapper: Some missing statics
authorAlasdair G Kergon <agk@redhat.com>
Thu, 5 May 2005 23:16:09 +0000 (16:16 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Thu, 5 May 2005 23:36:46 +0000 (16:36 -0700)
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>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/md/dm-hw-handler.c
drivers/md/dm-path-selector.c
drivers/md/dm-table.c
drivers/md/dm-zero.c

index ae63772e44c9c9f2b359e127704335f110aec12e..4cc0010e01569a16f0fd3bc53c2f3a365bff3e07 100644 (file)
@@ -23,7 +23,7 @@ struct hwh_internal {
 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;
 
index ac5c4bbec6c188b547ce1804be38e80bebf5a33d..a28c1c2b4ef5c703d2d5ce4f5c67bb2858483542 100644 (file)
@@ -26,7 +26,7 @@ struct ps_internal {
 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;
 
index ee175d4906c4de556aaddbcd4c4921a4799f3008..18e9b9953fcd32489a208b273927616da7dd4627 100644 (file)
@@ -242,7 +242,7 @@ static void free_devices(struct list_head *devices)
        }
 }
 
-void table_destroy(struct dm_table *t)
+static void table_destroy(struct dm_table *t)
 {
        unsigned int i;
 
index 7febc2cac73d893c37734ac2bf7d832ec4b42ed9..51c0639b248770e25405af6b07fbade900318df7 100644 (file)
@@ -55,7 +55,7 @@ static struct target_type zero_target = {
        .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 @@ int __init dm_zero_init(void)
        return r;
 }
 
-void __exit dm_zero_exit(void)
+static void __exit dm_zero_exit(void)
 {
        int r = dm_unregister_target(&zero_target);