]> git.baikalelectronics.ru Git - kernel.git/commit
asm-generic/io.h: suppress endianness warnings for readq() and writeq()
authorVladimir Oltean <vladimir.oltean@nxp.com>
Mon, 9 Jan 2023 13:11:52 +0000 (15:11 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 11 May 2023 14:02:58 +0000 (23:02 +0900)
commit7f9e0921a44962793bd2f5c03c74387b27d75798
tree1ddbcaae620f9872f4186bf2dc3ddce9c7552a6d
parent4968cff5b101a15e4df46a2f5c815c3b63f2eebb
asm-generic/io.h: suppress endianness warnings for readq() and writeq()

[ Upstream commit d564fa1ff19e893e2971d66e5c8f49dc1cdc8ffc ]

Commit fedaab9cd132 ("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@app.fastmail.com/
Suggested-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
include/asm-generic/io.h