[PATCHv3,1/7] criu: Remove PAGE_IMAGE_SIZE

Submitted by Dmitry Safonov on April 6, 2018, 11:40 p.m.

Details

Message ID 20180406234021.15724-2-dima@arista.com
State New
Series "Large pages support for aarch64/ppc64"
Headers show

Commit Message

Dmitry Safonov April 6, 2018, 11:40 p.m.
It's unused since commit fd3f33f5d23a ("headers: image.h -- Drop unused
entries"), so let's remove it completely.

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

Patch hide | download patch | download mbox

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