[dm-devel] [PATCH 07/11] libmultipath: make orphan_paths() static

mwilck at suse.com mwilck at suse.com
Thu Dec 2 16:06:48 UTC 2021


From: Martin Wilck <mwilck at suse.com>

This function is only used in structs_vec.c

Signed-off-by: Martin Wilck <mwilck at suse.com>
---
 libmultipath/libmultipath.version | 1 -
 libmultipath/structs_vec.c        | 2 +-
 libmultipath/structs_vec.h        | 2 --
 3 files changed, 1 insertion(+), 4 deletions(-)

diff --git a/libmultipath/libmultipath.version b/libmultipath/libmultipath.version
index 0c5417d..68db95f 100644
--- a/libmultipath/libmultipath.version
+++ b/libmultipath/libmultipath.version
@@ -129,7 +129,6 @@ global:
 	need_io_err_check;
 	normalize_timespec;
 	orphan_path;
-	orphan_paths;
 	parse_prkey_flags;
 	pathcount;
 	path_discovery;
diff --git a/libmultipath/structs_vec.c b/libmultipath/structs_vec.c
index 61f8e1b..67d3504 100644
--- a/libmultipath/structs_vec.c
+++ b/libmultipath/structs_vec.c
@@ -300,7 +300,7 @@ void orphan_path(struct path *pp, const char *reason)
 	uninitialize_path(pp);
 }
 
-void orphan_paths(vector pathvec, struct multipath *mpp, const char *reason)
+static void orphan_paths(vector pathvec, struct multipath *mpp, const char *reason)
 {
 	int i;
 	struct path * pp;
diff --git a/libmultipath/structs_vec.h b/libmultipath/structs_vec.h
index 2a0cbd1..fb0e3b4 100644
--- a/libmultipath/structs_vec.h
+++ b/libmultipath/structs_vec.h
@@ -15,8 +15,6 @@ void __set_no_path_retry(struct multipath *mpp, bool check_features);
 #define set_no_path_retry(mpp) __set_no_path_retry(mpp, true)
 
 int adopt_paths (vector pathvec, struct multipath * mpp);
-void orphan_paths(vector pathvec, struct multipath *mpp,
-		  const char *reason);
 void orphan_path (struct path * pp, const char *reason);
 void set_path_removed(struct path *pp);
 
-- 
2.34.0





More information about the dm-devel mailing list