Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

UAPI: Split compound conditionals containing __KERNEL__ in Arm64

Split compound conditionals containing __KERNEL__ in Arm64 where possible to
make it easier for the UAPI disintegration scripts to handle them.

Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>

+9 -3
+3 -1
arch/arm64/include/asm/hwcap.h
··· 35 35 #define COMPAT_HWCAP_IDIVT (1 << 18) 36 36 #define COMPAT_HWCAP_IDIV (COMPAT_HWCAP_IDIVA|COMPAT_HWCAP_IDIVT) 37 37 38 - #if defined(__KERNEL__) && !defined(__ASSEMBLY__) 38 + #ifdef __KERNEL__ 39 + #ifndef __ASSEMBLY__ 39 40 /* 40 41 * This yields a mask that user programs can use to figure out what 41 42 * instruction set this cpu supports. ··· 49 48 COMPAT_HWCAP_NEON|COMPAT_HWCAP_IDIV) 50 49 51 50 extern unsigned int elf_hwcap; 51 + #endif 52 52 #endif 53 53 54 54 #endif
+3 -1
arch/arm64/include/asm/stat.h
··· 18 18 19 19 #include <asm-generic/stat.h> 20 20 21 - #if defined(__KERNEL__) && defined(CONFIG_COMPAT) 21 + #ifdef __KERNEL__ 22 + #ifdef CONFIG_COMPAT 22 23 23 24 #include <asm/compat.h> 24 25 ··· 58 57 compat_u64 st_ino; 59 58 }; 60 59 60 + #endif 61 61 #endif 62 62 63 63 #endif
+3 -1
arch/arm64/include/asm/unistd.h
··· 18 18 #include <asm-generic/unistd.h> 19 19 #endif 20 20 21 - #if defined(__KERNEL__) && defined(CONFIG_COMPAT) 21 + #ifdef __KERNEL__ 22 + #ifdef CONFIG_COMPAT 22 23 #include <asm/unistd32.h> 24 + #endif 23 25 #endif