lkml.org 
[lkml]   [2005]   [May]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] device-mapper: Some missing statics
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);

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-05-04 19:28    [W:0.095 / U:0.160 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site