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

Configure Feed

Select the types of activity you want to include in your feed.

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

authored by

Thomas Weißschuh and committed by
Thomas Gleixner
9b444349 08b5dcb6

+1 -2
+1 -2
arch/powerpc/kernel/compat_audit.c
··· 1 1 // SPDX-License-Identifier: GPL-2.0 2 - #undef __powerpc64__ 3 2 #include <linux/audit_arch.h> 4 - #include <asm/unistd.h> 3 + #include <asm/unistd_32.h> 5 4 6 5 #include "audit_32.h" 7 6