compat: make linux/compat.h available everywhere
authorArnd Bergmann <arnd@arndb.de>
Thu, 22 Jul 2021 14:28:58 +0000 (16:28 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 23 Jul 2021 13:20:24 +0000 (14:20 +0100)
commit1a33b18b3bd9748c9c712a23e788bf1f1c4a7025
tree72df5b66fd4befbe9c0eda26dc6c81970c6bd2ca
parent4431531c482a2c05126caaa9fcc5053a4a5c495b
compat: make linux/compat.h available everywhere

Parts of linux/compat.h are under an #ifdef, but we end up
using more of those over time, moving things around bit by
bit.

To get it over with once and for all, make all of this file
uncondititonal now so it can be accessed everywhere. There
are only a few types left that are in asm/compat.h but not
yet in the asm-generic version, so add those in the process.

This requires providing a few more types in asm-generic/compat.h
that were not already there. The only tricky one is
compat_sigset_t, which needs a little help on 32-bit architectures
and for x86.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/arm64/include/asm/compat.h
arch/mips/include/asm/compat.h
arch/parisc/include/asm/compat.h
arch/powerpc/include/asm/compat.h
arch/s390/include/asm/compat.h
arch/sparc/include/asm/compat.h
arch/x86/include/asm/compat.h
arch/x86/include/asm/signal.h
include/asm-generic/compat.h
include/linux/compat.h