[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <968d21dc-437e-4909-bca8-fac4402f515d@quicinc.com>
Date: Wed, 23 Apr 2025 21:05:47 +0800
From: Jie Luo <quic_luoj@...cinc.com>
To: Yury Norov <yury.norov@...il.com>
CC: Rasmus Villemoes <linux@...musvillemoes.dk>,
Julia Lawall
<Julia.Lawall@...ia.fr>,
Nicolas Palix <nicolas.palix@...g.fr>,
"Catalin
Marinas" <catalin.marinas@....com>,
Will Deacon <will@...nel.org>, "Marc
Zyngier" <maz@...nel.org>,
Oliver Upton <oliver.upton@...ux.dev>,
Joey Gouly
<joey.gouly@....com>,
Suzuki K Poulose <suzuki.poulose@....com>,
Zenghui Yu
<yuzenghui@...wei.com>, <linux-kernel@...r.kernel.org>,
<cocci@...ia.fr>, <linux-arm-kernel@...ts.infradead.org>,
<kvmarm@...ts.linux.dev>, <andrew@...n.ch>,
<quic_kkumarcs@...cinc.com>, <quic_linchen@...cinc.com>,
<quic_leiwei@...cinc.com>, <quic_suruchia@...cinc.com>,
<quic_pavir@...cinc.com>
Subject: Re: [PATCH v3 1/6] bitfield: Add FIELD_MODIFY() helper
On 4/19/2025 1:11 AM, Yury Norov wrote:
>> Add a helper for replacing the contents of bitfield in memory
>> with the specified value.
>>
>> Even though a helper xxx_replace_bits() is available, it is not
>> well documented, and only reports errors at the run time, which
>> will not be helpful to catch possible overflow errors due to
>> incorrect parameter types used.
>>
>> Add the helper FIELD_MODIFY() to the FIELD_XXX family of bitfield
>> macros. It is functionally similar as xxx_replace_bits(), and in
>> addition adds the compile time type checking.
> This paragraph duplicates the above. I'll drop it and take this
> patch to bitmap-for-next. Regarding the rest of the series - it's up
> to ARM64 and Cocci maintainers if they want them or not.
>
> Thanks for the work!
>
> Thanks,
> Yury
OK, thanks.
Powered by blists - more mailing lists