drivers/dma/bestcomm/bestcomm.c:31:9: sparse: sparse: Initializer entry defined twice
From: kernel test robot
Date: Thu Dec 03 2026 - 04:18:59 EST
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: d06ce6f1eb5eeffd4ebcfde345dc34a98131d106
commit: 57946765c242005bdb16d17944c27662c8c5b013 dmaengine: bestcomm: Enable compile testing
date: 8 weeks ago
config: powerpc64-randconfig-r2300-20261203 (https://download.01.org/0day-ci/archive/20261203/20261203101404.t3TCDPyS-lkp@xxxxxxxxx/config)
compiler: powerpc64-linux-gcc (GCC) 15.3.0
sparse: v0.6.5-rc1-94-g0d159c10
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261203/20261203101404.t3TCDPyS-lkp@xxxxxxxxx/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
| Fixes: 57946765c242 ("dmaengine: bestcomm: Enable compile testing")
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/20261203101404.t3TCDPyS-lkp@xxxxxxxxx/
sparse warnings: (new ones prefixed by >>)
drivers/dma/bestcomm/bestcomm.c:94:30: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void volatile [noderef] __iomem *a @@ got struct bcom_bd *bd @@
drivers/dma/bestcomm/bestcomm.c:94:30: sparse: expected void volatile [noderef] __iomem *a
drivers/dma/bestcomm/bestcomm.c:94:30: sparse: got struct bcom_bd *bd
drivers/dma/bestcomm/bestcomm.c:185:19: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void volatile [noderef] __iomem *a @@ got unsigned int [usertype] *[assigned] var @@
drivers/dma/bestcomm/bestcomm.c:185:19: sparse: expected void volatile [noderef] __iomem *a
drivers/dma/bestcomm/bestcomm.c:185:19: sparse: got unsigned int [usertype] *[assigned] var
drivers/dma/bestcomm/bestcomm.c:186:19: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void volatile [noderef] __iomem *a @@ got unsigned int [usertype] *[assigned] inc @@
drivers/dma/bestcomm/bestcomm.c:186:19: sparse: expected void volatile [noderef] __iomem *a
drivers/dma/bestcomm/bestcomm.c:186:19: sparse: got unsigned int [usertype] *[assigned] inc
drivers/dma/bestcomm/bestcomm.c:192:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void volatile [noderef] __iomem *d @@ got unsigned int [usertype] *[assigned] desc @@
drivers/dma/bestcomm/bestcomm.c:192:21: sparse: expected void volatile [noderef] __iomem *d
drivers/dma/bestcomm/bestcomm.c:192:21: sparse: got unsigned int [usertype] *[assigned] desc
drivers/dma/bestcomm/bestcomm.c:193:25: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void volatile [noderef] __iomem *d @@ got unsigned int [usertype] * @@
drivers/dma/bestcomm/bestcomm.c:193:25: sparse: expected void volatile [noderef] __iomem *d
drivers/dma/bestcomm/bestcomm.c:193:25: sparse: got unsigned int [usertype] *
drivers/dma/bestcomm/bestcomm.c:194:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void volatile [noderef] __iomem *d @@ got unsigned int [usertype] *[assigned] inc @@
drivers/dma/bestcomm/bestcomm.c:194:21: sparse: expected void volatile [noderef] __iomem *d
drivers/dma/bestcomm/bestcomm.c:194:21: sparse: got unsigned int [usertype] *[assigned] inc
drivers/dma/bestcomm/bestcomm.c:301:27: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void volatile [noderef] __iomem *a @@ got struct bcom_tdt *tdt @@
drivers/dma/bestcomm/bestcomm.c:301:27: sparse: expected void volatile [noderef] __iomem *a
drivers/dma/bestcomm/bestcomm.c:301:27: sparse: got struct bcom_tdt *tdt
drivers/dma/bestcomm/bestcomm.c:302:27: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void volatile [noderef] __iomem *a @@ got unsigned int [usertype] *ctx @@
drivers/dma/bestcomm/bestcomm.c:302:27: sparse: expected void volatile [noderef] __iomem *a
drivers/dma/bestcomm/bestcomm.c:302:27: sparse: got unsigned int [usertype] *ctx
drivers/dma/bestcomm/bestcomm.c:303:27: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void volatile [noderef] __iomem *a @@ got unsigned int [usertype] *var @@
drivers/dma/bestcomm/bestcomm.c:303:27: sparse: expected void volatile [noderef] __iomem *a
drivers/dma/bestcomm/bestcomm.c:303:27: sparse: got unsigned int [usertype] *var
drivers/dma/bestcomm/bestcomm.c:304:27: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void volatile [noderef] __iomem *a @@ got unsigned int [usertype] *fdt @@
drivers/dma/bestcomm/bestcomm.c:304:27: sparse: expected void volatile [noderef] __iomem *a
drivers/dma/bestcomm/bestcomm.c:304:27: sparse: got unsigned int [usertype] *fdt
drivers/dma/bestcomm/bestcomm.c:307:35: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void volatile [noderef] __iomem *d @@ got unsigned int [usertype] * @@
drivers/dma/bestcomm/bestcomm.c:307:35: sparse: expected void volatile [noderef] __iomem *d
drivers/dma/bestcomm/bestcomm.c:307:35: sparse: got unsigned int [usertype] *
>> drivers/dma/bestcomm/bestcomm.c:31:9: sparse: sparse: Initializer entry defined twice
drivers/dma/bestcomm/bestcomm.c:32:9: sparse: also defined here
drivers/dma/bestcomm/bestcomm.c:456:9: sparse: sparse: Initializer entry defined twice
drivers/dma/bestcomm/bestcomm.c:457:9: sparse: also defined here
vim +31 drivers/dma/bestcomm/bestcomm.c
2f9ea1bde0d12d8 arch/powerpc/sysdev/bestcomm/bestcomm.c Sylvain Munaut 2007-09-16 27
66ffbe490b61568 arch/powerpc/sysdev/bestcomm/bestcomm.c Grant Likely 2008-01-24 28 /* MPC5200 device tree match tables */
57c0342239b028d drivers/dma/bestcomm/bestcomm.c Fabian Frederick 2015-03-16 29 static const struct of_device_id mpc52xx_sram_ids[] = {
66ffbe490b61568 arch/powerpc/sysdev/bestcomm/bestcomm.c Grant Likely 2008-01-24 30 { .compatible = "fsl,mpc5200-sram", },
66ffbe490b61568 arch/powerpc/sysdev/bestcomm/bestcomm.c Grant Likely 2008-01-24 @31 { .compatible = "mpc5200-sram", },
66ffbe490b61568 arch/powerpc/sysdev/bestcomm/bestcomm.c Grant Likely 2008-01-24 32 {}
66ffbe490b61568 arch/powerpc/sysdev/bestcomm/bestcomm.c Grant Likely 2008-01-24 33 };
66ffbe490b61568 arch/powerpc/sysdev/bestcomm/bestcomm.c Grant Likely 2008-01-24 34
2f9ea1bde0d12d8 arch/powerpc/sysdev/bestcomm/bestcomm.c Sylvain Munaut 2007-09-16 35
:::::: The code at line 31 was first introduced by commit
:::::: 66ffbe490b6156898364b3f20a571a78f8d77bc8 [POWERPC] mpc5200: normalize compatible property bindings
:::::: TO: Grant Likely <grant.likely@xxxxxxxxxxxx>
:::::: CC: Grant Likely <grant.likely@xxxxxxxxxxxx>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki