Re: [RFC v2 2/3] atomic: Specify alignment for atomic_t and atomic64_t
From: Arnd Bergmann
Date: Mon Oct 06 2025 - 07:09:29 EST
On Mon, Oct 6, 2025, at 12:22, Peter Zijlstra wrote:
> On Mon, Oct 06, 2025 at 12:07:24PM +0200, Arnd Bergmann wrote:
>
>> It looks like Mark Rutland fixed the try_cmpxchg() function this
>> way in commit ec570320b09f ("locking/atomic: Correct (cmp)xchg()
>> instrumentation"), but for some reason we still have the wrong
>> annotation on the atomic_try_cmpxchg() helpers.
>
>> Mark, I've tried to modify your script to produce that output,
>> the output looks correct to me, but it makes the script more
>> complex than I liked and I'm not sure that matching on
>> "${type}"="p" is the best way to check for this.
>
> I don't see anything wrong with this. The result looks good.
Thanks for having a look, I've sent it out as a proper patch now.
Arnd