[PATCH] arm64: uapi: Use __u128 instead of __uint128_t in UAPI headers
Marc Zyngier
maz at kernel.org
Fri Jun 19 07:09:26 PDT 2026
On Fri, 19 Jun 2026 14:08:34 +0100,
Will Deacon <will at kernel.org> wrote:
>
> The arm64 UAPI exposes '__uint128_t' types in the members of
> 'struct user_fpsimd_state', 'struct user_pac_address_keys' and in the
> signal frame via 'struct fpsimd_context'. Since the alignment of such
> a type appears to be non-portable (16 bytes on arm64, 8 bytes on s390),
> prefer the '__u128' typedef from uapi/linux/types.h, which makes the
> alignment explicit and allows the definitions to be reused by other
> host architectures.
>
> Cc: Arnd Bergmann <arnd at arndb.de>
> Cc: Nick Desaulniers <nick.desaulniers+lkml at gmail.com>
> Cc: Steffen Eiden <seiden at linux.ibm.com>
> Cc: Andreas Grapentin <gra at linux.ibm.com>
> Cc: Catalin Marinas <catalin.marinas at arm.com>
> Cc: Dave Martin <dave.martin at arm.com>
> Cc: Mark Rutland <mark.rutland at arm.com>
> Cc: Marc Zyngier <maz at kernel.org>
> Signed-off-by: Will Deacon <will at kernel.org>
FWIW:
Reviewed-by: Marc Zyngier <maz at kernel.org>
M.
--
Without deviation from the norm, progress is not possible.
More information about the linux-arm-kernel
mailing list