Linux MIPS Architecture development
 help / color / mirror / Atom feed
* [PATCH] mips: Fix compile warnings of perf "tests/attr.c" on mips64.
@ 2014-04-25 10:07 Eunbong Song
  0 siblings, 0 replies; only message in thread
From: Eunbong Song @ 2014-04-25 10:07 UTC (permalink / raw)
  To: ralf; +Cc: linux-mips@linux-mips.org, linux-kernel@vger.kernel.org


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@samsung.com>
---
 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

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2014-04-25 10:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-25 10:07 [PATCH] mips: Fix compile warnings of perf "tests/attr.c" on mips64 Eunbong Song

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox