sound/pci/mixart/mixart_core.c:39:19: sparse: sparse: incorrect type in argument 1 (different address spaces)
From: kernel test robot
Date: Sat May 23 2026 - 14:16:54 EST
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: eed108edc1170404bbef9e7d0189d18a3cc354f5
commit: c7dd395d7b53a66de8503507fe7ef21b8fab3e57 mips: dts: Add PCIe to EcoNet EN751221
date: 7 weeks ago
config: mips-randconfig-r133-20260523 (https://download.01.org/0day-ci/archive/20260524/202605240216.sJYhxkvw-lkp@xxxxxxxxx/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/202605240216.sJYhxkvw-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: c7dd395d7b53 ("mips: dts: Add PCIe to EcoNet EN751221")
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202605240216.sJYhxkvw-lkp@xxxxxxxxx/
sparse warnings: (new ones prefixed by >>)
>> sound/pci/mixart/mixart_core.c:39:19: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got unsigned int * @@
sound/pci/mixart/mixart_core.c:39:19: sparse: expected void const volatile [noderef] __iomem *mem
sound/pci/mixart/mixart_core.c:39:19: sparse: got unsigned int *
>> sound/pci/mixart/mixart_core.c:39:19: sparse: sparse: cast to restricted __be32
sound/pci/mixart/mixart_core.c:40:19: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got unsigned int * @@
sound/pci/mixart/mixart_core.c:40:19: sparse: expected void const volatile [noderef] __iomem *mem
sound/pci/mixart/mixart_core.c:40:19: sparse: got unsigned int *
sound/pci/mixart/mixart_core.c:40:19: sparse: sparse: cast to restricted __be32
sound/pci/mixart/mixart_core.c:50:22: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got unsigned int * @@
sound/pci/mixart/mixart_core.c:50:22: sparse: expected void const volatile [noderef] __iomem *mem
sound/pci/mixart/mixart_core.c:50:22: sparse: got unsigned int *
sound/pci/mixart/mixart_core.c:50:22: sparse: sparse: cast to restricted __be32
>> sound/pci/mixart/mixart_core.c:56:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] val @@ got restricted __be32 [usertype] @@
sound/pci/mixart/mixart_core.c:56:9: sparse: expected unsigned int [usertype] val
sound/pci/mixart/mixart_core.c:56:9: sparse: got restricted __be32 [usertype]
>> sound/pci/mixart/mixart_core.c:56:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got unsigned int * @@
sound/pci/mixart/mixart_core.c:56:9: sparse: expected void volatile [noderef] __iomem *mem
sound/pci/mixart/mixart_core.c:56:9: sparse: got unsigned int *
sound/pci/mixart/mixart_core.c:74:32: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got unsigned int * @@
sound/pci/mixart/mixart_core.c:74:32: sparse: expected void const volatile [noderef] __iomem *mem
sound/pci/mixart/mixart_core.c:74:32: sparse: got unsigned int *
sound/pci/mixart/mixart_core.c:74:32: sparse: sparse: cast to restricted __be32
sound/pci/mixart/mixart_core.c:75:32: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got unsigned int * @@
sound/pci/mixart/mixart_core.c:75:32: sparse: expected void const volatile [noderef] __iomem *mem
sound/pci/mixart/mixart_core.c:75:32: sparse: got unsigned int *
sound/pci/mixart/mixart_core.c:75:32: sparse: sparse: cast to restricted __be32
sound/pci/mixart/mixart_core.c:76:32: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got unsigned int * @@
sound/pci/mixart/mixart_core.c:76:32: sparse: expected void const volatile [noderef] __iomem *mem
sound/pci/mixart/mixart_core.c:76:32: sparse: got unsigned int *
sound/pci/mixart/mixart_core.c:76:32: sparse: sparse: cast to restricted __be32
sound/pci/mixart/mixart_core.c:77:32: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got unsigned int * @@
sound/pci/mixart/mixart_core.c:77:32: sparse: expected void const volatile [noderef] __iomem *mem
sound/pci/mixart/mixart_core.c:77:32: sparse: got unsigned int *
sound/pci/mixart/mixart_core.c:77:32: sparse: sparse: cast to restricted __be32
sound/pci/mixart/mixart_core.c:101:19: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got unsigned int * @@
sound/pci/mixart/mixart_core.c:101:19: sparse: expected void const volatile [noderef] __iomem *mem
sound/pci/mixart/mixart_core.c:101:19: sparse: got unsigned int *
sound/pci/mixart/mixart_core.c:101:19: sparse: sparse: cast to restricted __be32
sound/pci/mixart/mixart_core.c:109:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] val @@ got restricted __be32 [usertype] @@
sound/pci/mixart/mixart_core.c:109:9: sparse: expected unsigned int [usertype] val
sound/pci/mixart/mixart_core.c:109:9: sparse: got restricted __be32 [usertype]
sound/pci/mixart/mixart_core.c:109:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got unsigned int * @@
sound/pci/mixart/mixart_core.c:109:9: sparse: expected void volatile [noderef] __iomem *mem
sound/pci/mixart/mixart_core.c:109:9: sparse: got unsigned int *
sound/pci/mixart/mixart_core.c:116:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] val @@ got restricted __be32 [usertype] @@
sound/pci/mixart/mixart_core.c:116:9: sparse: expected unsigned int [usertype] val
sound/pci/mixart/mixart_core.c:116:9: sparse: got restricted __be32 [usertype]
sound/pci/mixart/mixart_core.c:116:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got unsigned int * @@
sound/pci/mixart/mixart_core.c:116:9: sparse: expected void volatile [noderef] __iomem *mem
sound/pci/mixart/mixart_core.c:116:9: sparse: got unsigned int *
sound/pci/mixart/mixart_core.c:141:19: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got unsigned int * @@
sound/pci/mixart/mixart_core.c:141:19: sparse: expected void const volatile [noderef] __iomem *mem
sound/pci/mixart/mixart_core.c:141:19: sparse: got unsigned int *
sound/pci/mixart/mixart_core.c:141:19: sparse: sparse: cast to restricted __be32
sound/pci/mixart/mixart_core.c:142:19: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got unsigned int * @@
sound/pci/mixart/mixart_core.c:142:19: sparse: expected void const volatile [noderef] __iomem *mem
sound/pci/mixart/mixart_core.c:142:19: sparse: got unsigned int *
sound/pci/mixart/mixart_core.c:142:19: sparse: sparse: cast to restricted __be32
sound/pci/mixart/mixart_core.c:153:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got unsigned int * @@
sound/pci/mixart/mixart_core.c:153:29: sparse: expected void const volatile [noderef] __iomem *mem
sound/pci/mixart/mixart_core.c:153:29: sparse: got unsigned int *
sound/pci/mixart/mixart_core.c:153:29: sparse: sparse: cast to restricted __be32
sound/pci/mixart/mixart_core.c:161:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] val @@ got restricted __be32 [usertype] @@
sound/pci/mixart/mixart_core.c:161:9: sparse: expected unsigned int [usertype] val
sound/pci/mixart/mixart_core.c:161:9: sparse: got restricted __be32 [usertype]
sound/pci/mixart/mixart_core.c:161:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got unsigned int * @@
sound/pci/mixart/mixart_core.c:161:9: sparse: expected void volatile [noderef] __iomem *mem
sound/pci/mixart/mixart_core.c:161:9: sparse: got unsigned int *
sound/pci/mixart/mixart_core.c:166:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] val @@ got restricted __be32 [usertype] @@
sound/pci/mixart/mixart_core.c:166:9: sparse: expected unsigned int [usertype] val
sound/pci/mixart/mixart_core.c:166:9: sparse: got restricted __be32 [usertype]
sound/pci/mixart/mixart_core.c:166:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got unsigned int * @@
sound/pci/mixart/mixart_core.c:166:9: sparse: expected void volatile [noderef] __iomem *mem
sound/pci/mixart/mixart_core.c:166:9: sparse: got unsigned int *
sound/pci/mixart/mixart_core.c:167:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] val @@ got restricted __be32 [usertype] @@
sound/pci/mixart/mixart_core.c:167:9: sparse: expected unsigned int [usertype] val
sound/pci/mixart/mixart_core.c:167:9: sparse: got restricted __be32 [usertype]
sound/pci/mixart/mixart_core.c:167:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got unsigned int * @@
sound/pci/mixart/mixart_core.c:167:9: sparse: expected void volatile [noderef] __iomem *mem
sound/pci/mixart/mixart_core.c:167:9: sparse: got unsigned int *
sound/pci/mixart/mixart_core.c:168:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] val @@ got restricted __be32 [usertype] @@
sound/pci/mixart/mixart_core.c:168:9: sparse: expected unsigned int [usertype] val
sound/pci/mixart/mixart_core.c:168:9: sparse: got restricted __be32 [usertype]
sound/pci/mixart/mixart_core.c:168:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got unsigned int * @@
sound/pci/mixart/mixart_core.c:168:9: sparse: expected void volatile [noderef] __iomem *mem
sound/pci/mixart/mixart_core.c:168:9: sparse: got unsigned int *
sound/pci/mixart/mixart_core.c:169:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] val @@ got restricted __be32 [usertype] @@
sound/pci/mixart/mixart_core.c:169:9: sparse: expected unsigned int [usertype] val
sound/pci/mixart/mixart_core.c:169:9: sparse: got restricted __be32 [usertype]
sound/pci/mixart/mixart_core.c:169:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got unsigned int * @@
sound/pci/mixart/mixart_core.c:169:9: sparse: expected void volatile [noderef] __iomem *mem
sound/pci/mixart/mixart_core.c:169:9: sparse: got unsigned int *
sound/pci/mixart/mixart_core.c:170:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] val @@ got restricted __be32 [usertype] @@
sound/pci/mixart/mixart_core.c:170:9: sparse: expected unsigned int [usertype] val
sound/pci/mixart/mixart_core.c:170:9: sparse: got restricted __be32 [usertype]
sound/pci/mixart/mixart_core.c:170:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got unsigned int * @@
sound/pci/mixart/mixart_core.c:170:9: sparse: expected void volatile [noderef] __iomem *mem
sound/pci/mixart/mixart_core.c:170:9: sparse: got unsigned int *
sound/pci/mixart/mixart_core.c:171:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] val @@ got restricted __be32 [usertype] @@
sound/pci/mixart/mixart_core.c:171:9: sparse: expected unsigned int [usertype] val
sound/pci/mixart/mixart_core.c:171:9: sparse: got restricted __be32 [usertype]
sound/pci/mixart/mixart_core.c:171:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got unsigned int * @@
sound/pci/mixart/mixart_core.c:171:9: sparse: expected void volatile [noderef] __iomem *mem
sound/pci/mixart/mixart_core.c:171:9: sparse: got unsigned int *
sound/pci/mixart/mixart_core.c:172:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] val @@ got restricted __be32 [usertype] @@
sound/pci/mixart/mixart_core.c:172:9: sparse: expected unsigned int [usertype] val
sound/pci/mixart/mixart_core.c:172:9: sparse: got restricted __be32 [usertype]
sound/pci/mixart/mixart_core.c:172:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got unsigned int * @@
sound/pci/mixart/mixart_core.c:172:9: sparse: expected void volatile [noderef] __iomem *mem
sound/pci/mixart/mixart_core.c:172:9: sparse: got unsigned int *
sound/pci/mixart/mixart_core.c:173:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] val @@ got restricted __be32 [usertype] @@
sound/pci/mixart/mixart_core.c:173:9: sparse: expected unsigned int [usertype] val
sound/pci/mixart/mixart_core.c:173:9: sparse: got restricted __be32 [usertype]
sound/pci/mixart/mixart_core.c:173:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got unsigned int * @@
sound/pci/mixart/mixart_core.c:173:9: sparse: expected void volatile [noderef] __iomem *mem
sound/pci/mixart/mixart_core.c:173:9: sparse: got unsigned int *
vim +39 sound/pci/mixart/mixart_core.c
^1da177e4c3f41 Linus Torvalds 2005-04-16 32
^1da177e4c3f41 Linus Torvalds 2005-04-16 33
67b48b880062ba Takashi Iwai 2005-11-17 34 static int retrieve_msg_frame(struct mixart_mgr *mgr, u32 *msg_frame)
^1da177e4c3f41 Linus Torvalds 2005-04-16 35 {
^1da177e4c3f41 Linus Torvalds 2005-04-16 36 /* read the message frame fifo */
^1da177e4c3f41 Linus Torvalds 2005-04-16 37 u32 headptr, tailptr;
^1da177e4c3f41 Linus Torvalds 2005-04-16 38
^1da177e4c3f41 Linus Torvalds 2005-04-16 @39 tailptr = readl_be(MIXART_MEM(mgr, MSG_OUTBOUND_POST_TAIL));
^1da177e4c3f41 Linus Torvalds 2005-04-16 40 headptr = readl_be(MIXART_MEM(mgr, MSG_OUTBOUND_POST_HEAD));
^1da177e4c3f41 Linus Torvalds 2005-04-16 41
^1da177e4c3f41 Linus Torvalds 2005-04-16 42 if (tailptr == headptr)
^1da177e4c3f41 Linus Torvalds 2005-04-16 43 return 0; /* no message posted */
^1da177e4c3f41 Linus Torvalds 2005-04-16 44
da3cec35dd3c31 Takashi Iwai 2008-08-08 45 if (tailptr < MSG_OUTBOUND_POST_STACK)
da3cec35dd3c31 Takashi Iwai 2008-08-08 46 return 0; /* error */
da3cec35dd3c31 Takashi Iwai 2008-08-08 47 if (tailptr >= MSG_OUTBOUND_POST_STACK + MSG_BOUND_STACK_SIZE)
da3cec35dd3c31 Takashi Iwai 2008-08-08 48 return 0; /* error */
^1da177e4c3f41 Linus Torvalds 2005-04-16 49
^1da177e4c3f41 Linus Torvalds 2005-04-16 50 *msg_frame = readl_be(MIXART_MEM(mgr, tailptr));
^1da177e4c3f41 Linus Torvalds 2005-04-16 51
^1da177e4c3f41 Linus Torvalds 2005-04-16 52 /* increment the tail index */
^1da177e4c3f41 Linus Torvalds 2005-04-16 53 tailptr += 4;
^1da177e4c3f41 Linus Torvalds 2005-04-16 54 if( tailptr >= (MSG_OUTBOUND_POST_STACK+MSG_BOUND_STACK_SIZE) )
^1da177e4c3f41 Linus Torvalds 2005-04-16 55 tailptr = MSG_OUTBOUND_POST_STACK;
^1da177e4c3f41 Linus Torvalds 2005-04-16 @56 writel_be(tailptr, MIXART_MEM(mgr, MSG_OUTBOUND_POST_TAIL));
^1da177e4c3f41 Linus Torvalds 2005-04-16 57
^1da177e4c3f41 Linus Torvalds 2005-04-16 58 return 1;
^1da177e4c3f41 Linus Torvalds 2005-04-16 59 }
^1da177e4c3f41 Linus Torvalds 2005-04-16 60
:::::: The code at line 39 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2
:::::: TO: Linus Torvalds <torvalds@xxxxxxxxxxxxxxx>
:::::: CC: Linus Torvalds <torvalds@xxxxxxxxxxxxxxx>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki