OSDN Git Service

compat: ARM64: always include asm-generic/compat.h
authorArnd Bergmann <arnd@arndb.de>
Mon, 9 Dec 2019 15:16:20 +0000 (16:16 +0100)
committerArnd Bergmann <arnd@arndb.de>
Fri, 3 Jan 2020 08:32:32 +0000 (09:32 +0100)
commit556d687a4ccd54ab50a721ddde42c820545effd9
treead11038223b2903e6500208eb40c8730e888096a
parentfd6988496e79a6a4bdb514a4655d2920209eb85d
compat: ARM64: always include asm-generic/compat.h

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>
arch/arm64/include/asm/compat.h