Re: [PATCH 1/2] asm-generic/io.h: suppress endianness warnings for readq() and writeq()

From: Arnd Bergmann
Date: Tue Apr 04 2023 - 12:01:36 EST


On Fri, Mar 10, 2023, at 10:30, Vladimir Oltean wrote:
> Hi Arnd,
>
> On Mon, Jan 09, 2023 at 03:11:52PM +0200, Vladimir Oltean wrote:
>> Commit c1d55d50139b ("asm-generic/io.h: Fix sparse warnings on
>> big-endian architectures") missed fixing the 64-bit accessors.
>>
>> Arnd explains in the attached link why the casts are necessary, even if
>> __raw_readq() and __raw_writeq() do not take endian-specific types.
>>
>> Link: https://lore.kernel.org/lkml/9105d6fc-880b-4734-857d-e3d30b87ccf6@xxxxxxxxxxxxxxxx/
>> Suggested-by: Arnd Bergmann <arnd@xxxxxxxx>
>> Signed-off-by: Vladimir Oltean <vladimir.oltean@xxxxxxx>

>>
>
> Did these patches get lost?

Yes, sorry about that. I picked them up for 6.3 now, along with another
one that I just remembered.

Arnd