]> git.karo-electronics.de Git - karo-tx-linux.git/commit
powerpc: Add __SANE_USERSPACE_TYPES__ to asm/types.h for LL64
authorMatt Evans <matt@ozlabs.org>
Wed, 7 Dec 2011 20:57:09 +0000 (20:57 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 19 Dec 2011 03:41:14 +0000 (14:41 +1100)
commit2c9c6ce0199a4d252e20c531cfdc9d24e39235c0
tree719f208c3664564820de15f1de96b496798c7e35
parenta66086b8197da8dc83b698642d5947ff850e708d
powerpc: Add __SANE_USERSPACE_TYPES__ to asm/types.h for LL64

PPC64 uses long long for u64 in the kernel, but powerpc's asm/types.h
prevents 64-bit userland from seeing this definition, instead defaulting
to u64 == long in userspace.  Some user programs (e.g. kvmtool) may actually
want LL64, so this patch adds a check for __SANE_USERSPACE_TYPES__ so that,
if defined, int-ll64.h is included instead.

Signed-off-by: Matt Evans <matt@ozlabs.org>
Acked-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/types.h