[PATCH v2 4/5] powerpc/audit: directly include unistd_32.h from compat_audit.c

Arnd Bergmann arnd at arndb.de
Mon Mar 2 19:41:47 AEDT 2026


On Mon, Mar 2, 2026, at 08:58, Thomas Weißschuh wrote:
> 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 at linutronix.de>

Reviewed-by: Arnd Bergmann <arnd at arndb.de>


More information about the Linuxppc-dev mailing list