]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
asm-generic/io.h: suppress endianness warnings for relaxed accessors
authorVladimir Oltean <vladimir.oltean@nxp.com>
Thu, 16 Oct 2025 11:57:08 +0000 (07:57 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 19 Oct 2025 14:23:22 +0000 (16:23 +0200)
commit0beb2357a7d9e4005d95b90994d832d6883cdbca
tree5a80ba2f9e662722547e4475e265eef15846e2e6
parent57edac22ab8026fbb2d614544fb130adca46c0ee
asm-generic/io.h: suppress endianness warnings for relaxed accessors

[ Upstream commit 05d3855b4d21ef3c2df26be1cbba9d2c68915fcb ]

Copy the forced type casts from the normal MMIO accessors to suppress
the sparse warnings that point out __raw_readl() returns a native endian
word (just like readl()).

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Stable-dep-of: 8327bd4fcb6c ("asm-generic/io.h: Skip trace helpers if rwmmio events are disabled")
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/asm-generic/io.h