* [broonie-spi:for-6.20 2/42] drivers/spi/spi-aspeed-smc.c:909:35: sparse: sparse: incorrect type in argument 2 (different address spaces)
@ 2026-05-23 18:48 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-05-23 18:48 UTC (permalink / raw)
To: Chin-Ting Kuo; +Cc: oe-kbuild-all, linux-spi, Mark Brown
tree: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-6.20
head: 40534d19ed2afb880ecf202dab26a8e7a5808d16
commit: 04f7516ab70f7b82aae1d2830af2ee6f17f3fe98 [2/42] spi: aspeed: Add support for non-spi-mem devices
config: mips-randconfig-r134-20260523 (https://download.01.org/0day-ci/archive/20260524/202605240240.yLBPcZCa-lkp@intel.com/config)
compiler: clang version 23.0.0git (https://github.com/llvm/llvm-project 5bac06718f502014fade905512f1d26d578a18f3)
sparse: v0.6.5-rc1
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260524/202605240240.yLBPcZCa-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202605240240.yLBPcZCa-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
>> drivers/spi/spi-aspeed-smc.c:909:35: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got void *dst @@
drivers/spi/spi-aspeed-smc.c:909:35: sparse: expected void volatile [noderef] __iomem *mem
drivers/spi/spi-aspeed-smc.c:909:35: sparse: got void *dst
drivers/spi/spi-aspeed-smc.c:939:46: sparse: sparse: cast removes address space '__iomem' of expression
drivers/spi/spi-aspeed-smc.c:1469:61: sparse: sparse: undefined identifier 'cols'
drivers/spi/spi-aspeed-smc.c:1469:61: sparse: sparse: bad constant expression type
drivers/spi/spi-aspeed-smc.c:1469:55: sparse: sparse: undefined identifier 'rows'
drivers/spi/spi-aspeed-smc.c:1469:55: sparse: sparse: bad constant expression type
vim +909 drivers/spi/spi-aspeed-smc.c
890
891 static void aspeed_spi_user_transfer_tx(struct aspeed_spi *aspi,
892 struct spi_device *spi,
893 const u8 *tx_buf, u8 *rx_buf,
894 void *dst, u32 len)
895 {
896 const struct aspeed_spi_data *data = aspi->data;
897 bool full_duplex_transfer = data->full_duplex && tx_buf == rx_buf;
898 u32 i;
899
900 if (full_duplex_transfer &&
901 !!(spi->mode & (SPI_TX_DUAL | SPI_TX_QUAD |
902 SPI_RX_DUAL | SPI_RX_QUAD))) {
903 dev_err(aspi->dev,
904 "full duplex is only supported for single IO mode\n");
905 return;
906 }
907
908 for (i = 0; i < len; i++) {
> 909 writeb(tx_buf[i], dst);
910 if (full_duplex_transfer)
911 rx_buf[i] = readb(aspi->regs + FULL_DUPLEX_RX_DATA);
912 }
913 }
914
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-05-23 18:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-23 18:48 [broonie-spi:for-6.20 2/42] drivers/spi/spi-aspeed-smc.c:909:35: sparse: sparse: incorrect type in argument 2 (different address spaces) kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox