* drivers/gpu/drm/nouveau/nvif/chan.c:11:32: sparse: sparse: cast removes address space '__iomem' of expression
@ 2026-04-30 8:03 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2026-04-30 8:03 UTC (permalink / raw)
To: Ben Skeggs; +Cc: oe-kbuild-all, linux-kernel, Dave Airlie, Timur Tabi
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: e75a43c7cec459a07d91ed17de4de13ede2b7758
commit: d1fb887a08d8a21284e9a4be476f103353a32e7a drm/nouveau/nv50-: separate CHANNEL_GPFIFO handling out from CHANNEL_DMA
date: 12 months ago
config: sparc64-randconfig-r132-20260430 (https://download.01.org/0day-ci/archive/20260430/202604301541.JiYvVcb9-lkp@intel.com/config)
compiler: sparc64-linux-gcc (GCC) 8.5.0
sparse: v0.6.5-rc1
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260430/202604301541.JiYvVcb9-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: d1fb887a08d8 ("drm/nouveau/nv50-: separate CHANNEL_GPFIFO handling out from CHANNEL_DMA")
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202604301541.JiYvVcb9-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
>> drivers/gpu/drm/nouveau/nvif/chan.c:11:32: sparse: sparse: cast removes address space '__iomem' of expression
drivers/gpu/drm/nouveau/nvif/chan.c:71:29: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void [noderef] __iomem *ptr @@ got void *userd @@
drivers/gpu/drm/nouveau/nvif/chan.c:71:29: sparse: expected void [noderef] __iomem *ptr
drivers/gpu/drm/nouveau/nvif/chan.c:71:29: sparse: got void *userd
drivers/gpu/drm/nouveau/nvif/chan.c:73:30: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void [noderef] __iomem *ptr @@ got void *gpfifo @@
drivers/gpu/drm/nouveau/nvif/chan.c:73:30: sparse: expected void [noderef] __iomem *ptr
drivers/gpu/drm/nouveau/nvif/chan.c:73:30: sparse: got void *gpfifo
drivers/gpu/drm/nouveau/nvif/chan.c:77:39: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void [noderef] __iomem *ptr @@ got void *push @@
drivers/gpu/drm/nouveau/nvif/chan.c:77:39: sparse: expected void [noderef] __iomem *ptr
drivers/gpu/drm/nouveau/nvif/chan.c:77:39: sparse: got void *push
drivers/gpu/drm/nouveau/nvif/chan.c:89:32: sparse: sparse: cast removes address space '__iomem' of expression
drivers/gpu/drm/nouveau/nvif/chan.c:123:22: sparse: sparse: cast removes address space '__iomem' of expression
vim +/__iomem +11 drivers/gpu/drm/nouveau/nvif/chan.c
6
7 static void
8 nvif_chan_gpfifo_push_kick(struct nvif_push *push)
9 {
10 struct nvif_chan *chan = container_of(push, typeof(*chan), push);
> 11 u32 put = push->bgn - (u32 *)chan->push.mem.object.map.ptr;
12 u32 cnt = push->cur - push->bgn;
13
14 chan->func->gpfifo.push(chan, true, chan->push.addr + (put << 2), cnt << 2, false);
15 chan->func->gpfifo.kick(chan);
16 }
17
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 2+ messages in thread
* drivers/gpu/drm/nouveau/nvif/chan.c:11:32: sparse: sparse: cast removes address space '__iomem' of expression
@ 2026-05-01 10:54 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2026-05-01 10:54 UTC (permalink / raw)
To: Ben Skeggs; +Cc: oe-kbuild-all, linux-kernel, Dave Airlie, Timur Tabi
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 26fd6bff2c050196005312d1d306889220952a99
commit: d1fb887a08d8a21284e9a4be476f103353a32e7a drm/nouveau/nv50-: separate CHANNEL_GPFIFO handling out from CHANNEL_DMA
date: 12 months ago
config: sparc64-randconfig-r132-20260430 (https://download.01.org/0day-ci/archive/20260501/202605011849.1PCAgU5Y-lkp@intel.com/config)
compiler: sparc64-linux-gcc (GCC) 8.5.0
sparse: v0.6.5-rc1
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260501/202605011849.1PCAgU5Y-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: d1fb887a08d8 ("drm/nouveau/nv50-: separate CHANNEL_GPFIFO handling out from CHANNEL_DMA")
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202605011849.1PCAgU5Y-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
>> drivers/gpu/drm/nouveau/nvif/chan.c:11:32: sparse: sparse: cast removes address space '__iomem' of expression
drivers/gpu/drm/nouveau/nvif/chan.c:71:29: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void [noderef] __iomem *ptr @@ got void *userd @@
drivers/gpu/drm/nouveau/nvif/chan.c:71:29: sparse: expected void [noderef] __iomem *ptr
drivers/gpu/drm/nouveau/nvif/chan.c:71:29: sparse: got void *userd
drivers/gpu/drm/nouveau/nvif/chan.c:73:30: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void [noderef] __iomem *ptr @@ got void *gpfifo @@
drivers/gpu/drm/nouveau/nvif/chan.c:73:30: sparse: expected void [noderef] __iomem *ptr
drivers/gpu/drm/nouveau/nvif/chan.c:73:30: sparse: got void *gpfifo
drivers/gpu/drm/nouveau/nvif/chan.c:77:39: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void [noderef] __iomem *ptr @@ got void *push @@
drivers/gpu/drm/nouveau/nvif/chan.c:77:39: sparse: expected void [noderef] __iomem *ptr
drivers/gpu/drm/nouveau/nvif/chan.c:77:39: sparse: got void *push
drivers/gpu/drm/nouveau/nvif/chan.c:89:32: sparse: sparse: cast removes address space '__iomem' of expression
drivers/gpu/drm/nouveau/nvif/chan.c:123:22: sparse: sparse: cast removes address space '__iomem' of expression
vim +/__iomem +11 drivers/gpu/drm/nouveau/nvif/chan.c
6
7 static void
8 nvif_chan_gpfifo_push_kick(struct nvif_push *push)
9 {
10 struct nvif_chan *chan = container_of(push, typeof(*chan), push);
> 11 u32 put = push->bgn - (u32 *)chan->push.mem.object.map.ptr;
12 u32 cnt = push->cur - push->bgn;
13
14 chan->func->gpfifo.push(chan, true, chan->push.addr + (put << 2), cnt << 2, false);
15 chan->func->gpfifo.kick(chan);
16 }
17
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-05-01 10:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-01 10:54 drivers/gpu/drm/nouveau/nvif/chan.c:11:32: sparse: sparse: cast removes address space '__iomem' of expression kernel test robot
-- strict thread matches above, loose matches on Subject: below --
2026-04-30 8:03 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