From: kernel test robot <lkp@intel.com>
To: Caleb James DeLisle <cjd@cjdns.fr>
Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org,
Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Subject: sound/pci/mixart/mixart_core.c:39:19: sparse: sparse: incorrect type in argument 1 (different address spaces)
Date: Sun, 24 May 2026 02:16:20 +0800 [thread overview]
Message-ID: <202605240216.sJYhxkvw-lkp@intel.com> (raw)
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@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/202605240216.sJYhxkvw-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
| Fixes: c7dd395d7b53 ("mips: dts: Add PCIe to EcoNet EN751221")
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202605240216.sJYhxkvw-lkp@intel.com/
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@ppc970.osdl.org>
:::::: CC: Linus Torvalds <torvalds@ppc970.osdl.org>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next reply other threads:[~2026-05-23 18:16 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-23 18:16 kernel test robot [this message]
2026-05-24 9:23 ` Caleb James DeLisle
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202605240216.sJYhxkvw-lkp@intel.com \
--to=lkp@intel.com \
--cc=cjd@cjdns.fr \
--cc=linux-kernel@vger.kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=tsbogend@alpha.franken.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®