[CRIU] [PATCH 05/13] Hide asm/bitops.h from sources

Pavel Emelyanov xemul at virtuozzo.com
Thu Oct 20 13:36:16 PDT 2016


Signed-off-by: Pavel Emelyanov <xemul at virtuozzo.com>
---
 criu/cr-restore.c     | 1 -
 criu/include/bitops.h | 4 ++++
 criu/shmem.c          | 2 +-
 criu/sockets.c        | 2 +-
 criu/util.c           | 2 +-
 5 files changed, 7 insertions(+), 4 deletions(-)
 create mode 100644 criu/include/bitops.h

diff --git a/criu/cr-restore.c b/criu/cr-restore.c
index 3ac1917..26ab22a 100644
--- a/criu/cr-restore.c
+++ b/criu/cr-restore.c
@@ -91,7 +91,6 @@
 
 #include "asm/restore.h"
 #include "asm/atomic.h"
-#include "asm/bitops.h"
 #include "asm/parasite-syscall.h"
 
 #include "cr-errno.h"
diff --git a/criu/include/bitops.h b/criu/include/bitops.h
new file mode 100644
index 0000000..f38b9c6
--- /dev/null
+++ b/criu/include/bitops.h
@@ -0,0 +1,4 @@
+#ifndef __CR_INC_BITOPS_H__
+#define __CR_INC_BITOPS_H__
+#include "asm/bitops.h"
+#endif
diff --git a/criu/shmem.c b/criu/shmem.c
index e49389d..98b3af1 100644
--- a/criu/shmem.c
+++ b/criu/shmem.c
@@ -17,7 +17,7 @@
 #include "mem.h"
 #include "config.h"
 #include "uapi/std/syscall-codes.h"
-#include "asm/bitops.h"
+#include "bitops.h"
 #include "criu-log.h"
 #include "page.h"
 
diff --git a/criu/sockets.c b/criu/sockets.c
index 88634bf..daa365c 100644
--- a/criu/sockets.c
+++ b/criu/sockets.c
@@ -10,7 +10,7 @@
 #include <netinet/in.h>
 
 #include "int.h"
-#include "asm/bitops.h"
+#include "bitops.h"
 #include "libnetlink.h"
 #include "sockets.h"
 #include "unix_diag.h"
diff --git a/criu/util.c b/criu/util.c
index cf283fb..70a21cf 100644
--- a/criu/util.c
+++ b/criu/util.c
@@ -36,7 +36,7 @@
 #include <ctype.h>
 
 #include "int.h"
-#include "asm/bitops.h"
+#include "bitops.h"
 #include "page.h"
 #include "compiler.h"
 #include "list.h"
-- 
2.1.4



More information about the CRIU mailing list