[07/13] Hide asm/bitsperlong.h from sources

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

Details

Message ID 58092BC8.9090909@virtuozzo.com
State Accepted
Series "criu: Remove asm/ includes from non-arch sources"
Commit db5f0a648aa32382bd352c0807b1a7705646e692
Headers show

Commit Message

Pavel Emelianov Oct. 20, 2016, 8:40 p.m.
Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
---
 criu/bitmap.c              | 2 +-
 criu/include/bitsperlong.h | 4 ++++
 criu/pie/log-simple.c      | 3 +--
 3 files changed, 6 insertions(+), 3 deletions(-)
 create mode 100644 criu/include/bitsperlong.h

Patch hide | download patch | download mbox

diff --git a/criu/bitmap.c b/criu/bitmap.c
index 65a501e..03d8bc2 100644
--- a/criu/bitmap.c
+++ b/criu/bitmap.c
@@ -1,4 +1,4 @@ 
-#include "asm/bitsperlong.h"
+#include "bitsperlong.h"
 
 #define BIT_WORD(nr)		((nr) / BITS_PER_LONG)
 
diff --git a/criu/include/bitsperlong.h b/criu/include/bitsperlong.h
new file mode 100644
index 0000000..b69de22
--- /dev/null
+++ b/criu/include/bitsperlong.h
@@ -0,0 +1,4 @@ 
+#ifndef __CR_INC_BITSPERLONG_H__
+#define __CR_INC_BITSPERLONG_H__
+#include "asm/bitsperlong.h"
+#endif
diff --git a/criu/pie/log-simple.c b/criu/pie/log-simple.c
index 39b95b9..4220d36 100644
--- a/criu/pie/log-simple.c
+++ b/criu/pie/log-simple.c
@@ -1,7 +1,6 @@ 
 #include <stdarg.h>
 
-#include "asm/bitsperlong.h"
-
+#include "bitsperlong.h"
 #include "uapi/std/syscall.h"
 #include "log.h"