From: kernel test robot <lkp@intel.com>
To: Rosen Penev <rosenp@gmail.com>
Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org,
Vinod Koul <vkoul@kernel.org>, Frank Li <Frank.Li@nxp.com>
Subject: drivers/dma/bestcomm/gen_bd.c:144:22: sparse: sparse: incorrect type in argument 1 (different address spaces)
Date: Sun, 15 Nov 2026 11:16:28 +0100 [thread overview]
Message-ID: <202611151128.F2RcT2V4-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 23c62304dde29abe92013d85910d03a77dada35d
commit: 57946765c242005bdb16d17944c27662c8c5b013 dmaengine: bestcomm: Enable compile testing
date: 6 weeks ago
config: powerpc-randconfig-r2301-20261115 (https://download.01.org/0day-ci/archive/20261115/202611151128.F2RcT2V4-lkp@intel.com/config)
compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project c0693becb96c1610aeb87445a50df00d58a823cd)
sparse: v0.6.5-rc1-21-g84ec0658
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261115/202611151128.F2RcT2V4-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: 57946765c242 ("dmaengine: bestcomm: Enable compile testing")
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202611151128.F2RcT2V4-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
>> drivers/dma/bestcomm/gen_bd.c:144:22: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void volatile [noderef] __iomem *a @@ got struct bcom_bd *bd @@
drivers/dma/bestcomm/gen_bd.c:144:22: sparse: expected void volatile [noderef] __iomem *a
drivers/dma/bestcomm/gen_bd.c:144:22: sparse: got struct bcom_bd *bd
drivers/dma/bestcomm/gen_bd.c:227:22: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void volatile [noderef] __iomem *a @@ got struct bcom_bd *bd @@
drivers/dma/bestcomm/gen_bd.c:227:22: sparse: expected void volatile [noderef] __iomem *a
drivers/dma/bestcomm/gen_bd.c:227:22: sparse: got struct bcom_bd *bd
vim +144 drivers/dma/bestcomm/gen_bd.c
7acb939130ff054 arch/powerpc/sysdev/bestcomm/gen_bd.c Sylvain Munaut 2007-09-16 111
7acb939130ff054 arch/powerpc/sysdev/bestcomm/gen_bd.c Sylvain Munaut 2007-09-16 112 int
7acb939130ff054 arch/powerpc/sysdev/bestcomm/gen_bd.c Sylvain Munaut 2007-09-16 113 bcom_gen_bd_rx_reset(struct bcom_task *tsk)
7acb939130ff054 arch/powerpc/sysdev/bestcomm/gen_bd.c Sylvain Munaut 2007-09-16 114 {
7acb939130ff054 arch/powerpc/sysdev/bestcomm/gen_bd.c Sylvain Munaut 2007-09-16 115 struct bcom_gen_bd_priv *priv = tsk->priv;
7acb939130ff054 arch/powerpc/sysdev/bestcomm/gen_bd.c Sylvain Munaut 2007-09-16 116 struct bcom_gen_bd_rx_var *var;
7acb939130ff054 arch/powerpc/sysdev/bestcomm/gen_bd.c Sylvain Munaut 2007-09-16 117 struct bcom_gen_bd_rx_inc *inc;
7acb939130ff054 arch/powerpc/sysdev/bestcomm/gen_bd.c Sylvain Munaut 2007-09-16 118
7acb939130ff054 arch/powerpc/sysdev/bestcomm/gen_bd.c Sylvain Munaut 2007-09-16 119 /* Shutdown the task */
7acb939130ff054 arch/powerpc/sysdev/bestcomm/gen_bd.c Sylvain Munaut 2007-09-16 120 bcom_disable_task(tsk->tasknum);
7acb939130ff054 arch/powerpc/sysdev/bestcomm/gen_bd.c Sylvain Munaut 2007-09-16 121
7acb939130ff054 arch/powerpc/sysdev/bestcomm/gen_bd.c Sylvain Munaut 2007-09-16 122 /* Reset the microcode */
7acb939130ff054 arch/powerpc/sysdev/bestcomm/gen_bd.c Sylvain Munaut 2007-09-16 123 var = (struct bcom_gen_bd_rx_var *) bcom_task_var(tsk->tasknum);
7acb939130ff054 arch/powerpc/sysdev/bestcomm/gen_bd.c Sylvain Munaut 2007-09-16 124 inc = (struct bcom_gen_bd_rx_inc *) bcom_task_inc(tsk->tasknum);
7acb939130ff054 arch/powerpc/sysdev/bestcomm/gen_bd.c Sylvain Munaut 2007-09-16 125
7acb939130ff054 arch/powerpc/sysdev/bestcomm/gen_bd.c Sylvain Munaut 2007-09-16 126 if (bcom_load_image(tsk->tasknum, bcom_gen_bd_rx_task))
7acb939130ff054 arch/powerpc/sysdev/bestcomm/gen_bd.c Sylvain Munaut 2007-09-16 127 return -1;
7acb939130ff054 arch/powerpc/sysdev/bestcomm/gen_bd.c Sylvain Munaut 2007-09-16 128
7acb939130ff054 arch/powerpc/sysdev/bestcomm/gen_bd.c Sylvain Munaut 2007-09-16 129 var->enable = bcom_eng->regs_base +
7acb939130ff054 arch/powerpc/sysdev/bestcomm/gen_bd.c Sylvain Munaut 2007-09-16 130 offsetof(struct mpc52xx_sdma, tcr[tsk->tasknum]);
7acb939130ff054 arch/powerpc/sysdev/bestcomm/gen_bd.c Sylvain Munaut 2007-09-16 131 var->fifo = (u32) priv->fifo;
7acb939130ff054 arch/powerpc/sysdev/bestcomm/gen_bd.c Sylvain Munaut 2007-09-16 132 var->bd_base = tsk->bd_pa;
7acb939130ff054 arch/powerpc/sysdev/bestcomm/gen_bd.c Sylvain Munaut 2007-09-16 133 var->bd_last = tsk->bd_pa + ((tsk->num_bd-1) * tsk->bd_size);
7acb939130ff054 arch/powerpc/sysdev/bestcomm/gen_bd.c Sylvain Munaut 2007-09-16 134 var->bd_start = tsk->bd_pa;
7acb939130ff054 arch/powerpc/sysdev/bestcomm/gen_bd.c Sylvain Munaut 2007-09-16 135 var->buffer_size = priv->maxbufsize;
7acb939130ff054 arch/powerpc/sysdev/bestcomm/gen_bd.c Sylvain Munaut 2007-09-16 136
7acb939130ff054 arch/powerpc/sysdev/bestcomm/gen_bd.c Sylvain Munaut 2007-09-16 137 inc->incr_bytes = -(s16)sizeof(u32);
7acb939130ff054 arch/powerpc/sysdev/bestcomm/gen_bd.c Sylvain Munaut 2007-09-16 138 inc->incr_dst = sizeof(u32);
7acb939130ff054 arch/powerpc/sysdev/bestcomm/gen_bd.c Sylvain Munaut 2007-09-16 139
7acb939130ff054 arch/powerpc/sysdev/bestcomm/gen_bd.c Sylvain Munaut 2007-09-16 140 /* Reset the BDs */
7acb939130ff054 arch/powerpc/sysdev/bestcomm/gen_bd.c Sylvain Munaut 2007-09-16 141 tsk->index = 0;
7acb939130ff054 arch/powerpc/sysdev/bestcomm/gen_bd.c Sylvain Munaut 2007-09-16 142 tsk->outdex = 0;
7acb939130ff054 arch/powerpc/sysdev/bestcomm/gen_bd.c Sylvain Munaut 2007-09-16 143
adec566b05288f2 drivers/dma/bestcomm/gen_bd.c Anatolij Gustschin 2021-10-14 @144 memset_io(tsk->bd, 0x00, tsk->num_bd * tsk->bd_size);
7acb939130ff054 arch/powerpc/sysdev/bestcomm/gen_bd.c Sylvain Munaut 2007-09-16 145
7acb939130ff054 arch/powerpc/sysdev/bestcomm/gen_bd.c Sylvain Munaut 2007-09-16 146 /* Configure some stuff */
7acb939130ff054 arch/powerpc/sysdev/bestcomm/gen_bd.c Sylvain Munaut 2007-09-16 147 bcom_set_task_pragma(tsk->tasknum, BCOM_GEN_RX_BD_PRAGMA);
7acb939130ff054 arch/powerpc/sysdev/bestcomm/gen_bd.c Sylvain Munaut 2007-09-16 148 bcom_set_task_auto_start(tsk->tasknum, tsk->tasknum);
7acb939130ff054 arch/powerpc/sysdev/bestcomm/gen_bd.c Sylvain Munaut 2007-09-16 149
7acb939130ff054 arch/powerpc/sysdev/bestcomm/gen_bd.c Sylvain Munaut 2007-09-16 150 out_8(&bcom_eng->regs->ipr[priv->initiator], priv->ipr);
7acb939130ff054 arch/powerpc/sysdev/bestcomm/gen_bd.c Sylvain Munaut 2007-09-16 151 bcom_set_initiator(tsk->tasknum, priv->initiator);
7acb939130ff054 arch/powerpc/sysdev/bestcomm/gen_bd.c Sylvain Munaut 2007-09-16 152
7acb939130ff054 arch/powerpc/sysdev/bestcomm/gen_bd.c Sylvain Munaut 2007-09-16 153 out_be32(&bcom_eng->regs->IntPend, 1<<tsk->tasknum); /* Clear ints */
7acb939130ff054 arch/powerpc/sysdev/bestcomm/gen_bd.c Sylvain Munaut 2007-09-16 154
7acb939130ff054 arch/powerpc/sysdev/bestcomm/gen_bd.c Sylvain Munaut 2007-09-16 155 return 0;
7acb939130ff054 arch/powerpc/sysdev/bestcomm/gen_bd.c Sylvain Munaut 2007-09-16 156 }
7acb939130ff054 arch/powerpc/sysdev/bestcomm/gen_bd.c Sylvain Munaut 2007-09-16 157 EXPORT_SYMBOL_GPL(bcom_gen_bd_rx_reset);
7acb939130ff054 arch/powerpc/sysdev/bestcomm/gen_bd.c Sylvain Munaut 2007-09-16 158
:::::: The code at line 144 was first introduced by commit
:::::: adec566b05288f2787a1f88dbaf77ed8b0c644fa dmaengine: bestcomm: fix system boot lockups
:::::: TO: Anatolij Gustschin <agust@denx.de>
:::::: CC: Vinod Koul <vkoul@kernel.org>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-11-15 10:16 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=202611151128.F2RcT2V4-lkp@intel.com \
--to=lkp@intel.com \
--cc=Frank.Li@nxp.com \
--cc=linux-kernel@vger.kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=rosenp@gmail.com \
--cc=vkoul@kernel.org \
/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®