[Devel] [CRIU PATCH vz7-u18 1/2] mount-v2: fix nested_pidns_procs declaration
Cyrill Gorcunov
gorcunov at gmail.com
Fri Oct 15 16:22:16 MSK 2021
Global vars should be defined as extern ones,
otherwise linker will complain about multiple
definition of symbols.
Fixes a2ac72ab1d35ba49ee2cc59ab973ac624d6125f0
Signed-off-by: Cyrill Gorcunov <gorcunov at gmail.com>
---
criu/include/mount-v2.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/criu/include/mount-v2.h b/criu/include/mount-v2.h
index b560009b7..b0f314ea4 100644
--- a/criu/include/mount-v2.h
+++ b/criu/include/mount-v2.h
@@ -38,7 +38,7 @@ struct sharing_group {
char *source;
};
-struct list_head nested_pidns_procs;
+extern struct list_head nested_pidns_procs;
extern int prepare_mnt_ns_v2(void);
extern int read_mnt_ns_img_v2(struct mount_info *info);
--
2.31.1
More information about the Devel
mailing list