Re: [PATCH 0/2] uapi: Add support for GENMASK_U128()

From: Ard Biesheuvel
Date: Wed Jul 24 2024 - 06:33:57 EST


Hi Anshuman,

On Wed, 24 Jul 2024 at 12:31, Anshuman Khandual
<anshuman.khandual@xxxxxxx> wrote:
>
> This adds support for GENMASK_U128() and some corresponding tests as well.
> GENMASK_U128() generated 128 bit masks will be required later on the arm64
> platform for enabling FEAT_SYSREG128 and FEAT_D128 features.
>
> Question:
>
> Proposed GENMASK_U128() depends on __int128 data type being supported in
> the compiler. Just wondering if that requires some compiler version #ifdefs
> or something similar ?
>

CONFIG_ARCH_SUPPORTS_INT128 comes to mind