[11/13] Hide asm/dump.h from sources

Submitted by Pavel Emelianov on Oct. 20, 2016, 8:41 p.m.

Details

Message ID 58092C13.5000301@virtuozzo.com
State Accepted
Series "criu: Remove asm/ includes from non-arch sources"
Commit 03e6997f9b2e10bd4eb99ea145d6580af6f18527
Headers show

Commit Message

Pavel Emelianov Oct. 20, 2016, 8:41 p.m.
Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
---
 criu/cr-dump.c          | 3 +--
 criu/include/dump.h     | 4 ++++
 criu/parasite-syscall.c | 2 +-
 criu/pstree.c           | 2 +-
 4 files changed, 7 insertions(+), 4 deletions(-)
 create mode 100644 criu/include/dump.h

Patch hide | download patch | download mbox

diff --git a/criu/cr-dump.c b/criu/cr-dump.c
index 6c8716d..e3f6b5e 100644
--- a/criu/cr-dump.c
+++ b/criu/cr-dump.c
@@ -81,8 +81,7 @@ 
 #include "seccomp.h"
 #include "seize.h"
 #include "fault-injection.h"
-
-#include "asm/dump.h"
+#include "dump.h"
 
 static char loc_buf[PAGE_SIZE];
 
diff --git a/criu/include/dump.h b/criu/include/dump.h
new file mode 100644
index 0000000..d9a4b61
--- /dev/null
+++ b/criu/include/dump.h
@@ -0,0 +1,4 @@ 
+#ifndef __CR_INC_DUMP_H__
+#define __CR_INC_DUMP_H__
+#include "asm/dump.h"
+#endif
diff --git a/criu/parasite-syscall.c b/criu/parasite-syscall.c
index 3d29a11..6f30580 100644
--- a/criu/parasite-syscall.c
+++ b/criu/parasite-syscall.c
@@ -36,7 +36,7 @@ 
 #include <stdlib.h>
 #include <elf.h>
 
-#include "asm/dump.h"
+#include "dump.h"
 #include "restorer.h"
 #include "pie/pie-relocs.h"
 
diff --git a/criu/pstree.c b/criu/pstree.c
index dac967a..890809e 100644
--- a/criu/pstree.c
+++ b/criu/pstree.c
@@ -12,7 +12,7 @@ 
 #include "files.h"
 #include "tty.h"
 #include "mount.h"
-#include "asm/dump.h"
+#include "dump.h"
 
 #include "protobuf.h"
 #include "images/pstree.pb-c.h"