diff options
author | Christoph Hellwig <hch@lst.de> | 2020-09-17 09:41:57 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2020-09-17 19:00:46 +0200 |
commit | cc7886d25bcaffe7f4412d774365d85b462366f8 (patch) | |
tree | 7d592841685eb47a6522ae13484c76c8ca4c7131 /include/asm-generic/compat.h | |
parent | Linux 5.9-rc1 (diff) | |
download | linux-cc7886d25bcaffe7f4412d774365d85b462366f8.tar.xz linux-cc7886d25bcaffe7f4412d774365d85b462366f8.zip |
compat: lift compat_s64 and compat_u64 to <asm-generic/compat.h>
lift the compat_s64 and compat_u64 definitions into common code using the
COMPAT_FOR_U64_ALIGNMENT symbol for the x86 special case.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include/asm-generic/compat.h')
-rw-r--r-- | include/asm-generic/compat.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/asm-generic/compat.h b/include/asm-generic/compat.h index a86f65bffab8..30f7b18a36f9 100644 --- a/include/asm-generic/compat.h +++ b/include/asm-generic/compat.h @@ -22,4 +22,12 @@ typedef u32 compat_ulong_t; typedef u32 compat_uptr_t; typedef u32 compat_aio_context_t; +#ifdef CONFIG_COMPAT_FOR_U64_ALIGNMENT +typedef s64 __attribute__((aligned(4))) compat_s64; +typedef u64 __attribute__((aligned(4))) compat_u64; +#else +typedef s64 compat_s64; +typedef u64 compat_u64; +#endif + #endif |