[CRIU] [PATCH 2/7] ns: make rst_new_ns_id static

Pavel Tikhomirov ptikhomirov at virtuozzo.com
Thu Feb 7 15:17:49 MSK 2019


It's never used outside of namespaces.c

Signed-off-by: Pavel Tikhomirov <ptikhomirov at virtuozzo.com>
---
 criu/include/namespaces.h | 1 -
 criu/namespaces.c         | 2 +-
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/criu/include/namespaces.h b/criu/include/namespaces.h
index 287abb3c8..a9a970a9b 100644
--- a/criu/include/namespaces.h
+++ b/criu/include/namespaces.h
@@ -166,7 +166,6 @@ extern int restore_ns(int rst, struct ns_desc *nd);
 
 extern int dump_task_ns_ids(struct pstree_item *);
 extern int predump_task_ns_ids(struct pstree_item *);
-extern struct ns_id *rst_new_ns_id(unsigned int id, pid_t pid, struct ns_desc *nd, enum ns_type t);
 extern int rst_add_ns_id(unsigned int id, struct pstree_item *, struct ns_desc *nd);
 extern struct ns_id *lookup_ns_by_id(unsigned int id, struct ns_desc *nd);
 
diff --git a/criu/namespaces.c b/criu/namespaces.c
index a228737ee..57f6bdfef 100644
--- a/criu/namespaces.c
+++ b/criu/namespaces.c
@@ -290,7 +290,7 @@ static void nsid_add(struct ns_id *ns, struct ns_desc *nd, unsigned int id, pid_
 	pr_info("Add %s ns %d pid %d\n", nd->str, ns->id, ns->ns_pid);
 }
 
-struct ns_id *rst_new_ns_id(unsigned int id, pid_t pid,
+static struct ns_id *rst_new_ns_id(unsigned int id, pid_t pid,
 		struct ns_desc *nd, enum ns_type type)
 {
 	struct ns_id *nsid;
-- 
2.20.1



More information about the CRIU mailing list