diff options
author | Andrew Pinski <apinski@cavium.com> | 2014-09-03 14:18:58 -0700 |
---|---|---|
committer | Andrey Konovalov <andrey.konovalov@linaro.org> | 2015-03-06 18:49:54 +0300 |
commit | 3f677fe959c768669e3740b4e5434443d6dbcc7c (patch) | |
tree | 1e7a73f4e447f1be0fb9ae8128d1bd965be355b0 /arch/arm64 | |
parent | 23c7a545f211bb41fe8572e467ce1155c1d1d5e6 (diff) |
ARM64:ILP32: Set kernel_long to long long so we can reuse most of the same syscalls as LP64
Since we want time_t and some other userland types to be the same between ILP32 and LP64, we define __kernel_long_t to be long long.
Signed-off-by: Andrew Pinski <apinski@cavium.com>
Diffstat (limited to 'arch/arm64')
-rw-r--r-- | arch/arm64/include/uapi/asm/posix_types.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/arch/arm64/include/uapi/asm/posix_types.h b/arch/arm64/include/uapi/asm/posix_types.h index 7985ff60ca3f..09619459bb1a 100644 --- a/arch/arm64/include/uapi/asm/posix_types.h +++ b/arch/arm64/include/uapi/asm/posix_types.h @@ -5,6 +5,12 @@ typedef unsigned short __kernel_old_uid_t; typedef unsigned short __kernel_old_gid_t; #define __kernel_old_uid_t __kernel_old_uid_t +#ifdef __ILP32__ +typedef long long __kernel_long_t; +typedef unsigned long long __kernel_ulong_t; +#define __kernel_long_t __kernel_long_t +#endif + #include <asm-generic/posix_types.h> -#endif /* __ASM_POSIX_TYPES_H */ +#endif /* __ASM_POSIX_TYPES_H */ |