Skip to content

Commit aa07f9d

Browse files
mauelshaMike Snitzer
authored andcommitted
dm: adjust EXPORT_SYMBOL() to follow functions immediately
Signed-off-by: Heinz Mauelshagen <[email protected]> Signed-off-by: Mike Snitzer <[email protected]>
1 parent 2e84fec commit aa07f9d

File tree

4 files changed

+3
-7
lines changed

4 files changed

+3
-7
lines changed

drivers/md/dm-builtin.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,4 @@ void dm_kobject_release(struct kobject *kobj)
4545
{
4646
complete(dm_get_completion_from_kobject(kobj));
4747
}
48-
4948
EXPORT_SYMBOL(dm_kobject_release);

drivers/md/dm-path-selector.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ int dm_register_path_selector(struct path_selector_type *pst)
115115

116116
return r;
117117
}
118+
EXPORT_SYMBOL_GPL(dm_register_path_selector);
118119

119120
int dm_unregister_path_selector(struct path_selector_type *pst)
120121
{
@@ -136,6 +137,4 @@ int dm_unregister_path_selector(struct path_selector_type *pst)
136137

137138
return 0;
138139
}
139-
140-
EXPORT_SYMBOL_GPL(dm_register_path_selector);
141140
EXPORT_SYMBOL_GPL(dm_unregister_path_selector);

drivers/md/dm-target.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ int dm_register_target(struct target_type *tt)
9393
up_write(&_lock);
9494
return rv;
9595
}
96+
EXPORT_SYMBOL(dm_register_target);
9697

9798
void dm_unregister_target(struct target_type *tt)
9899
{
@@ -106,6 +107,7 @@ void dm_unregister_target(struct target_type *tt)
106107

107108
up_write(&_lock);
108109
}
110+
EXPORT_SYMBOL(dm_unregister_target);
109111

110112
/*
111113
* io-err: always fails an io, useful for bringing
@@ -171,6 +173,3 @@ void dm_target_exit(void)
171173
{
172174
dm_unregister_target(&error_target);
173175
}
174-
175-
EXPORT_SYMBOL(dm_register_target);
176-
EXPORT_SYMBOL(dm_unregister_target);

drivers/md/persistent-data/dm-btree.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,6 @@ int dm_btree_lookup_next(struct dm_btree_info *info, dm_block_t root,
496496
exit_ro_spine(&spine);
497497
return r;
498498
}
499-
500499
EXPORT_SYMBOL_GPL(dm_btree_lookup_next);
501500

502501
/*----------------------------------------------------------------*/

0 commit comments

Comments
 (0)