xref: /OK3568_Linux_fs/kernel/include/asm-generic/compat.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0 */
2*4882a593Smuzhiyun #ifndef __ASM_GENERIC_COMPAT_H
3*4882a593Smuzhiyun #define __ASM_GENERIC_COMPAT_H
4*4882a593Smuzhiyun 
5*4882a593Smuzhiyun /* These types are common across all compat ABIs */
6*4882a593Smuzhiyun typedef u32 compat_size_t;
7*4882a593Smuzhiyun typedef s32 compat_ssize_t;
8*4882a593Smuzhiyun typedef s32 compat_clock_t;
9*4882a593Smuzhiyun typedef s32 compat_pid_t;
10*4882a593Smuzhiyun typedef u32 compat_ino_t;
11*4882a593Smuzhiyun typedef s32 compat_off_t;
12*4882a593Smuzhiyun typedef s64 compat_loff_t;
13*4882a593Smuzhiyun typedef s32 compat_daddr_t;
14*4882a593Smuzhiyun typedef s32 compat_timer_t;
15*4882a593Smuzhiyun typedef s32 compat_key_t;
16*4882a593Smuzhiyun typedef s16 compat_short_t;
17*4882a593Smuzhiyun typedef s32 compat_int_t;
18*4882a593Smuzhiyun typedef s32 compat_long_t;
19*4882a593Smuzhiyun typedef u16 compat_ushort_t;
20*4882a593Smuzhiyun typedef u32 compat_uint_t;
21*4882a593Smuzhiyun typedef u32 compat_ulong_t;
22*4882a593Smuzhiyun typedef u32 compat_uptr_t;
23*4882a593Smuzhiyun typedef u32 compat_aio_context_t;
24*4882a593Smuzhiyun 
25*4882a593Smuzhiyun #ifdef CONFIG_COMPAT_FOR_U64_ALIGNMENT
26*4882a593Smuzhiyun typedef s64 __attribute__((aligned(4))) compat_s64;
27*4882a593Smuzhiyun typedef u64 __attribute__((aligned(4))) compat_u64;
28*4882a593Smuzhiyun #else
29*4882a593Smuzhiyun typedef s64 compat_s64;
30*4882a593Smuzhiyun typedef u64 compat_u64;
31*4882a593Smuzhiyun #endif
32*4882a593Smuzhiyun 
33*4882a593Smuzhiyun #endif
34