compat: add a compat_need_64bit_alignment_fixup() helper
authorChristoph Hellwig <hch@lst.de>
Thu, 17 Sep 2020 07:41:58 +0000 (09:41 +0200)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 17 Sep 2020 17:00:46 +0000 (13:00 -0400)
commit527c412519eb63ed354790f4291c3728815d11a6
treed0fee0cb3bc9bd021f293e3fc8ba46d63f237b32
parentcc7886d25bcaffe7f4412d774365d85b462366f8
compat: add a compat_need_64bit_alignment_fixup() helper

Add a helper to check if the calling syscall needs a fixup for
non-natural 64-bit type alignment in the compat ABI.  This will only
return true for i386 syscalls on x86_64.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
arch/x86/include/asm/compat.h
include/linux/compat.h