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>
This commit is contained in:

committed by
Al Viro

parent
9123e3a74e
commit
cc7886d25b
@@ -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
|
||||
|
Reference in New Issue
Block a user