]> git.ipfire.org Git - thirdparty/linux.git/commit
powerpc/audit: Directly include unistd_32.h from compat_audit.c
authorThomas Weißschuh <thomas.weissschuh@linutronix.de>
Mon, 2 Mar 2026 07:58:40 +0000 (08:58 +0100)
committerThomas Gleixner <tglx@kernel.org>
Wed, 11 Mar 2026 09:15:43 +0000 (10:15 +0100)
commit9b444349a2e96745fc172e161539594ee1f0239e
treea91324e9a13d2b20085a30d6f8f97ea839785f72
parent08b5dcb6139975f3fd754c27f4943720c3c43ae2
powerpc/audit: Directly include unistd_32.h from compat_audit.c

This source file undefines '__powerpc64__' to get the 32-bit system call
numbers from asm/unistd.h. However this symbol is also evaluated by
other headers, among them is asm/bitsperlong.h. The undefinition leads
to an inconsistency between __BITS_PER_LONG and the C type 'long'.
An upcoming consistency check will be tripped by this.

Directly include asm/unistd_32.h to get access to the 32-bit system call
numbers instead.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Link: https://patch.msgid.link/20260302-vdso-compat-checkflags-v2-4-78e55baa58ba@linutronix.de
arch/powerpc/kernel/compat_audit.c