]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
arm64: Remove duplicate included header
authorThorsten Blum <thorsten.blum@linux.dev>
Thu, 9 Jan 2025 10:46:34 +0000 (11:46 +0100)
committerWill Deacon <will@kernel.org>
Fri, 10 Jan 2025 13:44:22 +0000 (13:44 +0000)
The header asm/unistd_compat_32.h is included whether CONFIG_COMPAT is
defined or not.

Include it only once and remove the following make includecheck warning:

  asm/unistd_compat_32.h is included more than once

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20250109104636.124507-2-thorsten.blum@linux.dev
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/include/asm/seccomp.h

index b8397555531445cb1456a1ceb67b1618fa3e4e5b..bf6bf40bc5ab980ad42839ede8084b13a2655b1c 100644 (file)
@@ -23,7 +23,6 @@
 #define SECCOMP_ARCH_NATIVE_NR         NR_syscalls
 #define SECCOMP_ARCH_NATIVE_NAME       "aarch64"
 #ifdef CONFIG_COMPAT
-#include <asm/unistd_compat_32.h>
 # define SECCOMP_ARCH_COMPAT           AUDIT_ARCH_ARM
 # define SECCOMP_ARCH_COMPAT_NR                __NR_compat32_syscalls
 # define SECCOMP_ARCH_COMPAT_NAME      "arm"