sparc: compat: Allow including asm/compat.h for 32-bit
authorArnd Bergmann <arnd@arndb.de>
Wed, 11 Apr 2018 12:36:21 +0000 (14:36 +0200)
committerArnd Bergmann <arnd@arndb.de>
Thu, 19 Apr 2018 11:29:40 +0000 (13:29 +0200)
commite4da0d6872db4aa12426057cb67059c4dee7df09
treeac00cb02c484f9624ce16394ea0a96f8605097be
parent2b5a9a37e97467fea67070a94529d6d07e549270
sparc: compat: Allow including asm/compat.h for 32-bit

We have several files on sparc that include linux/compat.h and expect
asm/compat.h not to be included for 32-bit builds, otherwise we get a
build failure.

Since we need to include asm/compat.h for compat time_t handling on all
32-bit architectures now, this hides some portions of asm/compat.h in
order to let the rest of the file get included.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/sparc/include/asm/compat.h