[CRIU] [PATCH 10/22] compel: plugins, shmem -- Add private data header

Cyrill Gorcunov gorcunov at openvz.org
Wed Oct 19 12:21:25 PDT 2016


This is rather reserve for future.

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 compel/include/compel/shmem.h       | 10 ----------
 compel/plugins/include/shmem-priv.h | 10 ++++++++++
 compel/plugins/shmem/shmem.c        |  1 +
 3 files changed, 11 insertions(+), 10 deletions(-)
 delete mode 100644 compel/include/compel/shmem.h
 create mode 100644 compel/plugins/include/shmem-priv.h

diff --git a/compel/include/compel/shmem.h b/compel/include/compel/shmem.h
deleted file mode 100644
index b6f994617e75..000000000000
--- a/compel/include/compel/shmem.h
+++ /dev/null
@@ -1,10 +0,0 @@
-#ifndef __COMPEL_PLUGIN_SHMEM_PRIV_H__
-#define __COMPEL_PLUGIN_SHMEM_PRIV_H__
-
-struct shmem_plugin_msg {
-	unsigned long start;
-	unsigned long len;
-};
-
-#endif /* __COMPEL_PLUGIN_SHMEM_PRIV_H__ */
-
diff --git a/compel/plugins/include/shmem-priv.h b/compel/plugins/include/shmem-priv.h
new file mode 100644
index 000000000000..08c47b66ae30
--- /dev/null
+++ b/compel/plugins/include/shmem-priv.h
@@ -0,0 +1,10 @@
+#ifndef COMPEL_PLUGIN_SHMEM_PRIV_H__
+#define COMPEL_PLUGIN_SHMEM_PRIV_H__
+
+struct shmem_plugin_msg {
+	unsigned long start;
+	unsigned long len;
+};
+
+#endif /* COMPEL_PLUGIN_SHMEM_PRIV_H__ */
+
diff --git a/compel/plugins/shmem/shmem.c b/compel/plugins/shmem/shmem.c
index cf499393ff70..2a0fa4562c52 100644
--- a/compel/plugins/shmem/shmem.c
+++ b/compel/plugins/shmem/shmem.c
@@ -4,6 +4,7 @@
 #include "uapi/compel/plugins/plugin-shmem.h"
 #include "uapi/compel/plugins/std/syscall.h"
 
+#include "shmem-priv.h"
 #include "std-priv.h"
 
 void *shmem_create(unsigned long size)
-- 
2.7.4



More information about the CRIU mailing list