[CRIU] [PATCH] ppc64le: fix build with UFFD

Mike Rapoport mike.rapoport at gmail.com
Tue Apr 12 10:52:29 PDT 2016


The __u64 is 'unsigned long' on Power and 'unsigned long long' on x86_64.
Using PRI?64 does not help because, for instance, PRIu64 is 'lu'.

According to [1] the solution is to define __SANE_USERSPACE_TYPES__ for
Power builds

[1] http://thread.gmane.org/gmane.linux.kernel/1425475/focus=1427433

Signed-off-by: Mike Rapoport <rppt at linux.vnet.ibm.com>
---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index e22c71e..625cf31 100644
--- a/Makefile
+++ b/Makefile
@@ -67,7 +67,7 @@ ifeq ($(ARCH),ppc64)
                 error := $(error ppc64 big endian not yet supported)
         endif
 
-        DEFINES		:= -DCONFIG_PPC64
+        DEFINES		:= -DCONFIG_PPC64 -D__SANE_USERSPACE_TYPES__
 endif
 
 export PROTOUFIX DEFINES USERCFLAGS
-- 
1.9.1



More information about the CRIU mailing list