compat: ARM64: always include asm-generic/compat.h
authorArnd Bergmann <arnd@arndb.de>
Mon, 9 Dec 2019 15:16:20 +0000 (16:16 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Apr 2020 14:33:25 +0000 (16:33 +0200)
commit58b243cf27869c0dbe873ad6e36f0c3951801afc
tree0ae8eba20a1ff47c0d5232164fbe859c992c5b29
parent3160e84abaf737de27b6935843db958c23dd2af9
compat: ARM64: always include asm-generic/compat.h

commit 556d687a4ccd54ab50a721ddde42c820545effd9 upstream.

In order to use compat_* type defininitions in device drivers
outside of CONFIG_COMPAT, move the inclusion of asm-generic/compat.h
ahead of the #ifdef.

All other architectures already do this.

Acked-by: Will Deacon <will@kernel.org>
Reviewed-by: Ben Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: Naresh Kamboju <naresh.kamboju@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm64/include/asm/compat.h