From: Ben Hutchings Date: Thu, 1 Oct 2015 00:35:55 +0000 (+0100) Subject: alpha: uapi: Add support for __SANE_USERSPACE_TYPES__ X-Git-Tag: v3.2.95~81 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a8d1a0bec2f09ad46e03850abfb3bfd3fe7aeda;p=thirdparty%2Fkernel%2Fstable.git alpha: uapi: Add support for __SANE_USERSPACE_TYPES__ commit cec80d82142ab25c71eee24b529cfeaf17c43062 upstream. This fixes compiler errors in perf such as: tests/attr.c: In function 'store_event': tests/attr.c:66:27: error: format '%llu' expects argument of type 'long long unsigned int', but argument 6 has type '__u64 {aka long unsigned int}' [-Werror=format=] snprintf(path, PATH_MAX, "%s/event-%d-%llu-%d", dir, ^ Signed-off-by: Ben Hutchings Tested-by: Michael Cree Signed-off-by: Matt Turner --- diff --git a/arch/alpha/include/asm/types.h b/arch/alpha/include/asm/types.h index 881544339c218..5993b2a004719 100644 --- a/arch/alpha/include/asm/types.h +++ b/arch/alpha/include/asm/types.h @@ -9,10 +9,18 @@ * need to be careful to avoid a name clashes. */ -#ifdef __KERNEL__ -#include -#else +/* + * This is here because we used to use l64 for alpha + * and we don't want to impact user mode with our change to ll64 + * in the kernel. + * + * However, some user programs are fine with this. They can + * flag __SANE_USERSPACE_TYPES__ to get int-ll64.h here. + */ +#if !defined(__SANE_USERSPACE_TYPES__) && !defined(__KERNEL__) #include +#else +#include #endif #ifndef __ASSEMBLY__