]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: Add __SANE_USERSPACE_TYPES__ to asm/types.h for LL64
authorAaro Koskinen <aaro.koskinen@nsn.com>
Tue, 6 May 2014 12:55:43 +0000 (15:55 +0300)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 28 May 2014 08:51:13 +0000 (10:51 +0200)
commit71303c8597ddee25b9a1ef30d217b1a856dc94ed
tree194d41bab42f1c545070cf36ed5db34e53d183b3
parent7db6e5e5018953863ee4c77ea76305d7489de402
MIPS: Add __SANE_USERSPACE_TYPES__ to asm/types.h for LL64

Allow 64-bit userspace programs to use ll64 types. The define name
comes from commit c81a8a9f410f2cf1bb30d8b3c3cb16f5640559ee (powerpc:
Add __SANE_USERSPACE_TYPES__ to asm/types.h for LL64).

The patch allows to compile perf on MIPS64 and eliminates the following
warnings:

tests/attr.c:74:4: error: format '%llu' expects argument of type 'long
long unsigned int', but argument 6 has type '__u64' [-Werror=format=]

Signed-off-by: Aaro Koskinen <aaro.koskinen@nsn.com>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/6890/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/uapi/asm/types.h