[CRIU] [PATCH 1/7] criu: Remove PAGE_IMAGE_SIZE

Dmitry Safonov dima at arista.com
Mon Mar 26 16:06:56 MSK 2018


It's unused since commit fd3f33f5d23a ("headers: image.h -- Drop unused
entries"), so let's remove it completely.

Signed-off-by: Dmitry Safonov <dima at arista.com>
---
 criu/crtools.c       | 1 -
 criu/include/image.h | 5 -----
 2 files changed, 6 deletions(-)

diff --git a/criu/crtools.c b/criu/crtools.c
index 17e16ce869be..70cf464bbf27 100644
--- a/criu/crtools.c
+++ b/criu/crtools.c
@@ -522,7 +522,6 @@ int main(int argc, char *argv[], char *envp[])
 
 #undef BOOL_OPT
 
-	BUILD_BUG_ON(PAGE_SIZE != PAGE_IMAGE_SIZE);
 	BUILD_BUG_ON(CTL_32 != SYSCTL_TYPE__CTL_32);
 	BUILD_BUG_ON(__CTL_STR != SYSCTL_TYPE__CTL_STR);
 
diff --git a/criu/include/image.h b/criu/include/image.h
index d9c4bdbc8da4..d576f5a1357a 100644
--- a/criu/include/image.h
+++ b/criu/include/image.h
@@ -12,11 +12,6 @@
 #include "log.h"
 #include "common/bug.h"
 
-#ifdef _ARCH_PPC64
-#define PAGE_IMAGE_SIZE	65536
-#else
-#define PAGE_IMAGE_SIZE	4096
-#endif /* _ARCH_PPC64 */
 #define PAGE_RSS	1
 #define PAGE_ANON	2
 
-- 
2.13.6



More information about the CRIU mailing list