Skip to content

Commit

Permalink
[PATCH] device-mapper: Some missing statics
Browse files Browse the repository at this point in the history
This patch makes some needlessly global code static.

Signed-Off-By: Alasdair G Kergon <[email protected]>
Signed-off-by: Adrian Bunk <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
kergon authored and Linus Torvalds committed May 5, 2005
1 parent f1daa40 commit 5e198d9
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion drivers/md/dm-hw-handler.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion drivers/md/dm-path-selector.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion drivers/md/dm-table.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
4 changes: 2 additions & 2 deletions drivers/md/dm-zero.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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);

Expand Down

0 comments on commit 5e198d9

Please sign in to comment.