[PATCH] mips: Fix compile warnings of perf "tests/attr.c" on mips64.

From: Eunbong Song
Date: Fri Apr 25 2014 - 06:07:41 EST



On mips64, we by default include '<asm-generic/int-l64.h> which results in __u64 being an
unsigned long. This causes compile warnings which are treated as errors due to '-Werror'.
This patch references commit e3541ec7.

Signed-off-by: Eunbong Song <eunb.song@xxxxxxxxxxx>
---
arch/mips/include/uapi/asm/types.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/mips/include/uapi/asm/types.h b/arch/mips/include/uapi/asm/types.h
index 7ac9d0b..8d959a0 100644
--- a/arch/mips/include/uapi/asm/types.h
+++ b/arch/mips/include/uapi/asm/types.h
@@ -16,7 +16,7 @@
* userspace to avoid code changes.
*/
#ifndef __KERNEL__
-# if _MIPS_SZLONG == 64
+# if !defined(__SANE_USERSPACE_TYPES__) && _MIPS_SZLONG == 64
# include <asm-generic/int-l64.h>
# else
# include <asm-generic/int-ll64.h>
--
1.7.0.1