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

Adrian Reber adrian at lisas.de
Wed Apr 13 00:33:14 PDT 2016


Thanks for the patch. I can confirm this fixes the error also for me. I
just detected, that on my ppc64le system userfaultfd is not correctly
detected and thus I never run into this.

Acked-by: Adrian Reber <areber at redhat.com>

On Tue, Apr 12, 2016 at 08:52:29PM +0300, Mike Rapoport wrote:
> 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