]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
spi: aspeed: Fix missing __iomem annotation in output transfer path
authorChin-Ting Kuo <chin-ting_kuo@aspeedtech.com>
Fri, 22 May 2026 07:16:20 +0000 (15:16 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 22 May 2026 10:55:27 +0000 (11:55 +0100)
commit5c3091e23f8fc2bdb6d85ca23b6097f05f3f0467
tree72a0088f4b75cc4529b4d8c6ec01ef7527ed230d
parent5200f5f493f79f14bbdc349e402a40dfb32f23c8
spi: aspeed: Fix missing __iomem annotation in output transfer path

The dst parameter of aspeed_spi_user_transfer_tx() is an MMIO address
obtained from chip->ahb_base, but it was typed as void * instead of
void __iomem *.  This caused a sparse warning report. Fix the
parameter type to void __iomem * and drop the now-unnecessary
cast at the call site.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202605180441.uD3toFRJ-lkp@intel.com/
Signed-off-by: Chin-Ting Kuo <chin-ting_kuo@aspeedtech.com>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Link: https://patch.msgid.link/20260522071621.102507-2-chin-ting_kuo@aspeedtech.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-aspeed-smc.c