[CRIU] [PATCH 3/7] dump: Make collect_mappings non static

Pavel Emelyanov xemul at parallels.com
Mon Dec 17 15:30:28 EST 2012


Will be used by other code.

Signed-off-by: Pavel Emelyanov <xemul at parallels.com>
---
 cr-dump.c         |    2 +-
 include/crtools.h |    1 +
 2 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/cr-dump.c b/cr-dump.c
index e8783db..53261d5 100644
--- a/cr-dump.c
+++ b/cr-dump.c
@@ -81,7 +81,7 @@ void free_mappings(struct list_head *vma_area_list)
 	INIT_LIST_HEAD(vma_area_list);
 }
 
-static int collect_mappings(pid_t pid, struct list_head *vma_area_list)
+int collect_mappings(pid_t pid, struct list_head *vma_area_list)
 {
 	int ret = -1;
 
diff --git a/include/crtools.h b/include/crtools.h
index faef472..799ea6e 100644
--- a/include/crtools.h
+++ b/include/crtools.h
@@ -206,6 +206,7 @@ struct cr_fdset *cr_glob_fdset_open(int mode);
 
 void close_cr_fdset(struct cr_fdset **cr_fdset);
 
+int collect_mappings(pid_t pid, struct list_head *vma_area_list);
 void free_mappings(struct list_head *vma_area_list);
 
 struct vma_area {
-- 
1.7.1


More information about the CRIU mailing list