]> git.baikalelectronics.ru Git - kernel.git/commit
compat: provide compat_ptr() on all architectures
authorArnd Bergmann <arnd@arndb.de>
Thu, 12 Dec 2019 17:15:25 +0000 (18:15 +0100)
committerArnd Bergmann <arnd@arndb.de>
Fri, 3 Jan 2020 08:32:51 +0000 (09:32 +0100)
commitaf3c34802e4a12f4242401194aa042d82ff49ff6
treeacc551431ec00ecd6c4935a7d4a2de51c0cae4c6
parent51c8b4b78052149496323db97dc0f28f0f003f92
compat: provide compat_ptr() on all architectures

In order to avoid needless #ifdef CONFIG_COMPAT checks,
move the compat_ptr() definition to linux/compat.h
where it can be seen by any file regardless of the
architecture.

Only s390 needs a special definition, this can use the
self-#define trick we have elsewhere.

Reviewed-by: Ben Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
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/powerpc/oprofile/backtrace.c
arch/s390/include/asm/compat.h
arch/sparc/include/asm/compat.h
arch/x86/include/asm/compat.h
include/linux/compat.h