[Devel] [CRIU PATCH vz7-u18 2/2] mount: fix declaration of root_yard_mp and mnt_roots

Cyrill Gorcunov gorcunov at gmail.com
Fri Oct 15 16:22:17 MSK 2021


They should be external otherwise linker will complain
about multiple declaration.

Fixes 596651d0222ff5196cf80db6e8812a535bf99734

Signed-off-by: Cyrill Gorcunov <gorcunov at gmail.com>
---
 criu/include/mount.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/criu/include/mount.h b/criu/include/mount.h
index 376020548..4945641f6 100644
--- a/criu/include/mount.h
+++ b/criu/include/mount.h
@@ -292,7 +292,7 @@ extern int do_restore_task_mnt_ns(struct ns_id *nsid);
 extern struct mount_info *mnt_subtree_next(struct mount_info *mi,
 					   struct mount_info *root);
 
-struct mount_info *root_yard_mp;
-char *mnt_roots;
+extern struct mount_info *root_yard_mp;
+extern char *mnt_roots;
 
 #endif /* __CR_MOUNT_H__ */
-- 
2.31.1



More information about the Devel mailing list