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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux