blob: 30f7b18a36f9393a50cc65f3fe7380ffa6461e33 [file] [log] [blame]
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00001/* SPDX-License-Identifier: GPL-2.0 */
David Brazdil0f672f62019-12-10 10:32:29 +00002#ifndef __ASM_GENERIC_COMPAT_H
3#define __ASM_GENERIC_COMPAT_H
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00004
David Brazdil0f672f62019-12-10 10:32:29 +00005/* These types are common across all compat ABIs */
6typedef u32 compat_size_t;
7typedef s32 compat_ssize_t;
8typedef s32 compat_clock_t;
9typedef s32 compat_pid_t;
10typedef u32 compat_ino_t;
11typedef s32 compat_off_t;
12typedef s64 compat_loff_t;
13typedef s32 compat_daddr_t;
14typedef s32 compat_timer_t;
15typedef s32 compat_key_t;
16typedef s16 compat_short_t;
17typedef s32 compat_int_t;
18typedef s32 compat_long_t;
19typedef u16 compat_ushort_t;
20typedef u32 compat_uint_t;
21typedef u32 compat_ulong_t;
22typedef u32 compat_uptr_t;
23typedef u32 compat_aio_context_t;
24
Olivier Deprez157378f2022-04-04 15:47:50 +020025#ifdef CONFIG_COMPAT_FOR_U64_ALIGNMENT
26typedef s64 __attribute__((aligned(4))) compat_s64;
27typedef u64 __attribute__((aligned(4))) compat_u64;
28#else
29typedef s64 compat_s64;
30typedef u64 compat_u64;
31#endif
32
David Brazdil0f672f62019-12-10 10:32:29 +000033#endif