diff mbox series

dm: moved EXPORT_SYMBOL so that it immediately followed its function/variable

Message ID 20210623082549.17187-1-wjc@cdjrlc.com (mailing list archive)
State New, archived
Headers show
Series dm: moved EXPORT_SYMBOL so that it immediately followed its function/variable | expand

Commit Message

Jinchao Wang June 23, 2021, 8:25 a.m. UTC
change made to resolve following checkpatch message:
  WARNING: EXPORT_SYMBOL(foo); should immediately follow its
function/variable

Signed-off-by: Jinchao Wang <wjc@cdjrlc.com>
---
 drivers/md/dm-path-selector.c | 3 +--
 drivers/md/dm-target.c        | 4 ++--
 2 files changed, 3 insertions(+), 4 deletions(-)
diff mbox series

Patch

diff --git a/drivers/md/dm-path-selector.c b/drivers/md/dm-path-selector.c
index fa0ccc585cb4..e2d3d6c7dbb3 100644
--- a/drivers/md/dm-path-selector.c
+++ b/drivers/md/dm-path-selector.c
@@ -114,6 +114,7 @@  int dm_register_path_selector(struct path_selector_type *pst)
 
 	return r;
 }
+EXPORT_SYMBOL_GPL(dm_register_path_selector);
 
 int dm_unregister_path_selector(struct path_selector_type *pst)
 {
@@ -135,6 +136,4 @@  int dm_unregister_path_selector(struct path_selector_type *pst)
 
 	return 0;
 }
-
-EXPORT_SYMBOL_GPL(dm_register_path_selector);
 EXPORT_SYMBOL_GPL(dm_unregister_path_selector);
diff --git a/drivers/md/dm-target.c b/drivers/md/dm-target.c
index 64dd0b34fcf4..493a263a8826 100644
--- a/drivers/md/dm-target.c
+++ b/drivers/md/dm-target.c
@@ -91,6 +91,7 @@  int dm_register_target(struct target_type *tt)
 	up_write(&_lock);
 	return rv;
 }
+EXPORT_SYMBOL(dm_register_target);
 
 void dm_unregister_target(struct target_type *tt)
 {
@@ -104,6 +105,7 @@  void dm_unregister_target(struct target_type *tt)
 
 	up_write(&_lock);
 }
+EXPORT_SYMBOL(dm_unregister_target);
 
 /*
  * io-err: always fails an io, useful for bringing
@@ -169,5 +171,3 @@  void dm_target_exit(void)
 	dm_unregister_target(&error_target);
 }
 
-EXPORT_SYMBOL(dm_register_target);
-EXPORT_SYMBOL(dm_unregister_target);