Skip to contentSkip to conversation

arm64: Remove duplicate included header

PATCH Applied Thorsten Blum 3 participants 3 messages Jan 9, 2025 – Jan 10, 2025 arm64

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm64: Remove duplicate included header

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

---
 arch/arm64/include/asm/seccomp.h | 1 -
 1 file changed, 1 deletion(-)
arch/arm64/include/asm/seccomp.h +0 -1
index b83975555314..bf6bf40bc5ab 100644
@@ -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"
Signature · 1 line
2.47.1
maintainer Applied
#2 lore raw
In reply to Thorsten Blum
Quoted 8 lines · Thorsten Blum

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

[...]

Applied to arm64 (for-next/misc), thanks!

[1/1] arm64: Remove duplicate included header

      https://git.kernel.org/arm64/c/965e9bbe025e

Cheers,

Signature · 5 lines
Will

https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev