* drivers/gpu/drm/sti/sti_mixer.c:145:47: sparse: sparse: incorrect type in argument 1 (different address spaces)
@ 2023-06-27 6:47 kernel test robot
0 siblings, 0 replies; 7+ messages in thread
From: kernel test robot @ 2023-06-27 6:47 UTC (permalink / raw)
To: Arnd Bergmann; +Cc: oe-kbuild-all, linux-kernel
Hi Arnd,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 1ef6663a587ba3e57dc5065a477db1c64481eedd
commit: 09f6b27d5ddd9ad0ec096d1b0f8decdacc70f0f8 ARM: dove: multiplatform support
date: 1 year, 3 months ago
config: arm-randconfig-r071-20230627 (https://download.01.org/0day-ci/archive/20230627/202306271413.5vS46KMc-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 12.3.0
reproduce: (https://download.01.org/0day-ci/archive/20230627/202306271413.5vS46KMc-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
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202306271413.5vS46KMc-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
>> drivers/gpu/drm/sti/sti_mixer.c:145:47: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *addr @@ got void * @@
drivers/gpu/drm/sti/sti_mixer.c:145:47: sparse: expected void const volatile [noderef] __iomem *addr
drivers/gpu/drm/sti/sti_mixer.c:145:47: sparse: got void *
>> drivers/gpu/drm/sti/sti_mixer.c:168:38: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void *addr @@ got void [noderef] __iomem * @@
drivers/gpu/drm/sti/sti_mixer.c:168:38: sparse: expected void *addr
drivers/gpu/drm/sti/sti_mixer.c:168:38: sparse: got void [noderef] __iomem *
vim +145 drivers/gpu/drm/sti/sti_mixer.c
a5f81078a56c6a Vincent Abriou 2016-02-04 139
a5f81078a56c6a Vincent Abriou 2016-02-04 140 static void mixer_dbg_mxn(struct seq_file *s, void *addr)
a5f81078a56c6a Vincent Abriou 2016-02-04 141 {
a5f81078a56c6a Vincent Abriou 2016-02-04 142 int i;
a5f81078a56c6a Vincent Abriou 2016-02-04 143
a5f81078a56c6a Vincent Abriou 2016-02-04 144 for (i = 1; i < 8; i++)
a5f81078a56c6a Vincent Abriou 2016-02-04 @145 seq_printf(s, "-0x%08X", (int)readl(addr + i * 4));
a5f81078a56c6a Vincent Abriou 2016-02-04 146 }
a5f81078a56c6a Vincent Abriou 2016-02-04 147
a5f81078a56c6a Vincent Abriou 2016-02-04 148 static int mixer_dbg_show(struct seq_file *s, void *arg)
a5f81078a56c6a Vincent Abriou 2016-02-04 149 {
a5f81078a56c6a Vincent Abriou 2016-02-04 150 struct drm_info_node *node = s->private;
a5f81078a56c6a Vincent Abriou 2016-02-04 151 struct sti_mixer *mixer = (struct sti_mixer *)node->info_ent->data;
a5f81078a56c6a Vincent Abriou 2016-02-04 152
a5f81078a56c6a Vincent Abriou 2016-02-04 153 seq_printf(s, "%s: (vaddr = 0x%p)",
a5f81078a56c6a Vincent Abriou 2016-02-04 154 sti_mixer_to_str(mixer), mixer->regs);
a5f81078a56c6a Vincent Abriou 2016-02-04 155
a5f81078a56c6a Vincent Abriou 2016-02-04 156 DBGFS_DUMP(GAM_MIXER_CTL);
a5f81078a56c6a Vincent Abriou 2016-02-04 157 mixer_dbg_ctl(s, sti_mixer_reg_read(mixer, GAM_MIXER_CTL));
a5f81078a56c6a Vincent Abriou 2016-02-04 158 DBGFS_DUMP(GAM_MIXER_BKC);
a5f81078a56c6a Vincent Abriou 2016-02-04 159 DBGFS_DUMP(GAM_MIXER_BCO);
a5f81078a56c6a Vincent Abriou 2016-02-04 160 DBGFS_DUMP(GAM_MIXER_BCS);
a5f81078a56c6a Vincent Abriou 2016-02-04 161 DBGFS_DUMP(GAM_MIXER_AVO);
a5f81078a56c6a Vincent Abriou 2016-02-04 162 DBGFS_DUMP(GAM_MIXER_AVS);
a5f81078a56c6a Vincent Abriou 2016-02-04 163 DBGFS_DUMP(GAM_MIXER_CRB);
a5f81078a56c6a Vincent Abriou 2016-02-04 164 mixer_dbg_crb(s, sti_mixer_reg_read(mixer, GAM_MIXER_CRB));
a5f81078a56c6a Vincent Abriou 2016-02-04 165 DBGFS_DUMP(GAM_MIXER_ACT);
a5f81078a56c6a Vincent Abriou 2016-02-04 166 DBGFS_DUMP(GAM_MIXER_MBP);
a5f81078a56c6a Vincent Abriou 2016-02-04 167 DBGFS_DUMP(GAM_MIXER_MX0);
a5f81078a56c6a Vincent Abriou 2016-02-04 @168 mixer_dbg_mxn(s, mixer->regs + GAM_MIXER_MX0);
e9635133d47b9c Markus Elfring 2017-05-05 169 seq_putc(s, '\n');
a5f81078a56c6a Vincent Abriou 2016-02-04 170 return 0;
a5f81078a56c6a Vincent Abriou 2016-02-04 171 }
a5f81078a56c6a Vincent Abriou 2016-02-04 172
:::::: The code at line 145 was first introduced by commit
:::::: a5f81078a56c6ab57b7db2402ac64c34338004c5 drm/sti: add debugfs entries for MIXER crtc
:::::: TO: Vincent Abriou <vincent.abriou@st.com>
:::::: CC: Vincent Abriou <vincent.abriou@st.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 7+ messages in thread
* drivers/gpu/drm/sti/sti_mixer.c:145:47: sparse: sparse: incorrect type in argument 1 (different address spaces)
@ 2024-10-05 7:36 kernel test robot
0 siblings, 0 replies; 7+ messages in thread
From: kernel test robot @ 2024-10-05 7:36 UTC (permalink / raw)
To: Ville Syrjälä; +Cc: oe-kbuild-all, linux-kernel
Hi Ville,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 27cc6fdf720183dce1dbd293483ec5a9cb6b595e
commit: 74bde7581df3e18061119e1b27b63d0a9ea57b7a drm/sti: Allow build with COMPILE_TEST=y
date: 4 months ago
config: sh-randconfig-r111-20241004 (https://download.01.org/0day-ci/archive/20241005/202410051504.tmcbQl23-lkp@intel.com/config)
compiler: sh4-linux-gcc (GCC) 14.1.0
reproduce: (https://download.01.org/0day-ci/archive/20241005/202410051504.tmcbQl23-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
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202410051504.tmcbQl23-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
>> drivers/gpu/drm/sti/sti_mixer.c:145:47: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *ptr @@ got void * @@
drivers/gpu/drm/sti/sti_mixer.c:145:47: sparse: expected void const volatile [noderef] __iomem *ptr
drivers/gpu/drm/sti/sti_mixer.c:145:47: sparse: got void *
drivers/gpu/drm/sti/sti_mixer.c:168:38: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void *addr @@ got void [noderef] __iomem * @@
drivers/gpu/drm/sti/sti_mixer.c:168:38: sparse: expected void *addr
drivers/gpu/drm/sti/sti_mixer.c:168:38: sparse: got void [noderef] __iomem *
vim +145 drivers/gpu/drm/sti/sti_mixer.c
a5f81078a56c6a Vincent Abriou 2016-02-04 139
a5f81078a56c6a Vincent Abriou 2016-02-04 140 static void mixer_dbg_mxn(struct seq_file *s, void *addr)
a5f81078a56c6a Vincent Abriou 2016-02-04 141 {
a5f81078a56c6a Vincent Abriou 2016-02-04 142 int i;
a5f81078a56c6a Vincent Abriou 2016-02-04 143
a5f81078a56c6a Vincent Abriou 2016-02-04 144 for (i = 1; i < 8; i++)
a5f81078a56c6a Vincent Abriou 2016-02-04 @145 seq_printf(s, "-0x%08X", (int)readl(addr + i * 4));
a5f81078a56c6a Vincent Abriou 2016-02-04 146 }
a5f81078a56c6a Vincent Abriou 2016-02-04 147
:::::: The code at line 145 was first introduced by commit
:::::: a5f81078a56c6ab57b7db2402ac64c34338004c5 drm/sti: add debugfs entries for MIXER crtc
:::::: TO: Vincent Abriou <vincent.abriou@st.com>
:::::: CC: Vincent Abriou <vincent.abriou@st.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 7+ messages in thread
* drivers/gpu/drm/sti/sti_mixer.c:145:47: sparse: sparse: incorrect type in argument 1 (different address spaces)
@ 2024-11-04 12:19 kernel test robot
0 siblings, 0 replies; 7+ messages in thread
From: kernel test robot @ 2024-11-04 12:19 UTC (permalink / raw)
To: Ville Syrjälä; +Cc: oe-kbuild-all, linux-kernel
Hi Ville,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 59b723cd2adbac2a34fc8e12c74ae26ae45bf230
commit: 74bde7581df3e18061119e1b27b63d0a9ea57b7a drm/sti: Allow build with COMPILE_TEST=y
date: 5 months ago
config: sh-randconfig-r111-20241104 (https://download.01.org/0day-ci/archive/20241104/202411042037.Zv3idYtx-lkp@intel.com/config)
compiler: sh4-linux-gcc (GCC) 14.1.0
reproduce: (https://download.01.org/0day-ci/archive/20241104/202411042037.Zv3idYtx-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
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202411042037.Zv3idYtx-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
>> drivers/gpu/drm/sti/sti_mixer.c:145:47: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *ptr @@ got void * @@
drivers/gpu/drm/sti/sti_mixer.c:145:47: sparse: expected void const volatile [noderef] __iomem *ptr
drivers/gpu/drm/sti/sti_mixer.c:145:47: sparse: got void *
drivers/gpu/drm/sti/sti_mixer.c:168:38: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void *addr @@ got void [noderef] __iomem * @@
drivers/gpu/drm/sti/sti_mixer.c:168:38: sparse: expected void *addr
drivers/gpu/drm/sti/sti_mixer.c:168:38: sparse: got void [noderef] __iomem *
vim +145 drivers/gpu/drm/sti/sti_mixer.c
a5f81078a56c6a Vincent Abriou 2016-02-04 139
a5f81078a56c6a Vincent Abriou 2016-02-04 140 static void mixer_dbg_mxn(struct seq_file *s, void *addr)
a5f81078a56c6a Vincent Abriou 2016-02-04 141 {
a5f81078a56c6a Vincent Abriou 2016-02-04 142 int i;
a5f81078a56c6a Vincent Abriou 2016-02-04 143
a5f81078a56c6a Vincent Abriou 2016-02-04 144 for (i = 1; i < 8; i++)
a5f81078a56c6a Vincent Abriou 2016-02-04 @145 seq_printf(s, "-0x%08X", (int)readl(addr + i * 4));
a5f81078a56c6a Vincent Abriou 2016-02-04 146 }
a5f81078a56c6a Vincent Abriou 2016-02-04 147
:::::: The code at line 145 was first introduced by commit
:::::: a5f81078a56c6ab57b7db2402ac64c34338004c5 drm/sti: add debugfs entries for MIXER crtc
:::::: TO: Vincent Abriou <vincent.abriou@st.com>
:::::: CC: Vincent Abriou <vincent.abriou@st.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 7+ messages in thread
* drivers/gpu/drm/sti/sti_mixer.c:145:47: sparse: sparse: incorrect type in argument 1 (different address spaces)
@ 2024-11-20 1:11 kernel test robot
2024-11-20 7:21 ` [PATCH] drm/sti: Add __iomem for mixer_dbg_mxn's parameter Pei Xiao
0 siblings, 1 reply; 7+ messages in thread
From: kernel test robot @ 2024-11-20 1:11 UTC (permalink / raw)
To: Ville =?unknown-8bit?B?U3lyasOkbMOk?=; +Cc: oe-kbuild-all, linux-kernel
Hi Ville,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 158f238aa69d91ad74e535c73f552bd4b025109c
commit: 74bde7581df3e18061119e1b27b63d0a9ea57b7a drm/sti: Allow build with COMPILE_TEST=y
date: 6 months ago
config: sh-randconfig-r132-20241119 (https://download.01.org/0day-ci/archive/20241119/202411191809.6V3c826r-lkp@intel.com/config)
compiler: sh4-linux-gcc (GCC) 14.2.0
reproduce: (https://download.01.org/0day-ci/archive/20241119/202411191809.6V3c826r-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
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202411191809.6V3c826r-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
>> drivers/gpu/drm/sti/sti_mixer.c:145:47: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *ptr @@ got void * @@
drivers/gpu/drm/sti/sti_mixer.c:145:47: sparse: expected void const volatile [noderef] __iomem *ptr
drivers/gpu/drm/sti/sti_mixer.c:145:47: sparse: got void *
drivers/gpu/drm/sti/sti_mixer.c:168:38: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void *addr @@ got void [noderef] __iomem * @@
drivers/gpu/drm/sti/sti_mixer.c:168:38: sparse: expected void *addr
drivers/gpu/drm/sti/sti_mixer.c:168:38: sparse: got void [noderef] __iomem *
vim +145 drivers/gpu/drm/sti/sti_mixer.c
a5f81078a56c6a Vincent Abriou 2016-02-04 139
a5f81078a56c6a Vincent Abriou 2016-02-04 140 static void mixer_dbg_mxn(struct seq_file *s, void *addr)
a5f81078a56c6a Vincent Abriou 2016-02-04 141 {
a5f81078a56c6a Vincent Abriou 2016-02-04 142 int i;
a5f81078a56c6a Vincent Abriou 2016-02-04 143
a5f81078a56c6a Vincent Abriou 2016-02-04 144 for (i = 1; i < 8; i++)
a5f81078a56c6a Vincent Abriou 2016-02-04 @145 seq_printf(s, "-0x%08X", (int)readl(addr + i * 4));
a5f81078a56c6a Vincent Abriou 2016-02-04 146 }
a5f81078a56c6a Vincent Abriou 2016-02-04 147
:::::: The code at line 145 was first introduced by commit
:::::: a5f81078a56c6ab57b7db2402ac64c34338004c5 drm/sti: add debugfs entries for MIXER crtc
:::::: TO: Vincent Abriou <vincent.abriou@st.com>
:::::: CC: Vincent Abriou <vincent.abriou@st.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH] drm/sti: Add __iomem for mixer_dbg_mxn's parameter
2024-11-20 1:11 drivers/gpu/drm/sti/sti_mixer.c:145:47: sparse: sparse: incorrect type in argument 1 (different address spaces) kernel test robot
@ 2024-11-20 7:21 ` Pei Xiao
2024-11-21 11:18 ` Raphaël Gallais-Pou
2024-11-26 13:46 ` Raphael Gallais-Pou
0 siblings, 2 replies; 7+ messages in thread
From: Pei Xiao @ 2024-11-20 7:21 UTC (permalink / raw)
To: alain.volmat, maarten.lankhorst, mripard, tzimmermann, airlied,
simona, dri-devel, linux-kernel, --to=lkp
Cc: ville.syrjala, Pei Xiao, kernel test robot
Sparse complains about incorrect type in argument 1.
expected void const volatile __iomem *ptr but got void *.
so modify mixer_dbg_mxn's addr parameter.
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202411191809.6V3c826r-lkp@intel.com/
Fixes: a5f81078a56c ("drm/sti: add debugfs entries for MIXER crtc")
Signed-off-by: Pei Xiao <xiaopei01@kylinos.cn>
---
drivers/gpu/drm/sti/sti_mixer.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/sti/sti_mixer.c b/drivers/gpu/drm/sti/sti_mixer.c
index 7e5f14646625..06c1b81912f7 100644
--- a/drivers/gpu/drm/sti/sti_mixer.c
+++ b/drivers/gpu/drm/sti/sti_mixer.c
@@ -137,7 +137,7 @@ static void mixer_dbg_crb(struct seq_file *s, int val)
}
}
-static void mixer_dbg_mxn(struct seq_file *s, void *addr)
+static void mixer_dbg_mxn(struct seq_file *s, void __iomem *addr)
{
int i;
--
2.34.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH] drm/sti: Add __iomem for mixer_dbg_mxn's parameter
2024-11-20 7:21 ` [PATCH] drm/sti: Add __iomem for mixer_dbg_mxn's parameter Pei Xiao
@ 2024-11-21 11:18 ` Raphaël Gallais-Pou
2024-11-26 13:46 ` Raphael Gallais-Pou
1 sibling, 0 replies; 7+ messages in thread
From: Raphaël Gallais-Pou @ 2024-11-21 11:18 UTC (permalink / raw)
To: Pei Xiao, alain.volmat, maarten.lankhorst, mripard, tzimmermann,
airlied, simona, dri-devel, linux-kernel, --to=lkp
Cc: ville.syrjala, kernel test robot
> Sparse complains about incorrect type in argument 1.
> expected void const volatile __iomem *ptr but got void *.
> so modify mixer_dbg_mxn's addr parameter.
>
> Reported-by: kernel test robot <lkp@intel.com>
> Closes: https://lore.kernel.org/oe-kbuild-all/202411191809.6V3c826r-lkp@intel.com/
> Fixes: a5f81078a56c ("drm/sti: add debugfs entries for MIXER crtc")
> Signed-off-by: Pei Xiao <xiaopei01@kylinos.cn>
Hi,
Thanks for your fix.
Acked-by: Raphael Gallais-Pou <rgallaispou@gmail.com>
Regards,
Raphaël
> ---
> drivers/gpu/drm/sti/sti_mixer.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/sti/sti_mixer.c b/drivers/gpu/drm/sti/sti_mixer.c
> index 7e5f14646625..06c1b81912f7 100644
> --- a/drivers/gpu/drm/sti/sti_mixer.c
> +++ b/drivers/gpu/drm/sti/sti_mixer.c
> @@ -137,7 +137,7 @@ static void mixer_dbg_crb(struct seq_file *s, int val)
> }
> }
>
> -static void mixer_dbg_mxn(struct seq_file *s, void *addr)
> +static void mixer_dbg_mxn(struct seq_file *s, void __iomem *addr)
> {
> int i;
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] drm/sti: Add __iomem for mixer_dbg_mxn's parameter
2024-11-20 7:21 ` [PATCH] drm/sti: Add __iomem for mixer_dbg_mxn's parameter Pei Xiao
2024-11-21 11:18 ` Raphaël Gallais-Pou
@ 2024-11-26 13:46 ` Raphael Gallais-Pou
1 sibling, 0 replies; 7+ messages in thread
From: Raphael Gallais-Pou @ 2024-11-26 13:46 UTC (permalink / raw)
To: Pei Xiao, alain.volmat, maarten.lankhorst, mripard, tzimmermann,
airlied, simona, dri-devel, linux-kernel, --to=lkp
Cc: ville.syrjala, kernel test robot
On 11/20/24 08:21, Pei Xiao wrote:
> Sparse complains about incorrect type in argument 1.
> expected void const volatile __iomem *ptr but got void *.
> so modify mixer_dbg_mxn's addr parameter.
>
> Reported-by: kernel test robot <lkp@intel.com>
> Closes: https://lore.kernel.org/oe-kbuild-all/202411191809.6V3c826r-lkp@intel.com/
> Fixes: a5f81078a56c ("drm/sti: add debugfs entries for MIXER crtc")
> Signed-off-by: Pei Xiao <xiaopei01@kylinos.cn>
Hi,
Applied on drm-misc-fixes.
Thanks,
RaphaEl Gallais-Pou
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2024-11-26 13:49 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-20 1:11 drivers/gpu/drm/sti/sti_mixer.c:145:47: sparse: sparse: incorrect type in argument 1 (different address spaces) kernel test robot
2024-11-20 7:21 ` [PATCH] drm/sti: Add __iomem for mixer_dbg_mxn's parameter Pei Xiao
2024-11-21 11:18 ` Raphaël Gallais-Pou
2024-11-26 13:46 ` Raphael Gallais-Pou
-- strict thread matches above, loose matches on Subject: below --
2024-11-04 12:19 drivers/gpu/drm/sti/sti_mixer.c:145:47: sparse: sparse: incorrect type in argument 1 (different address spaces) kernel test robot
2024-10-05 7:36 kernel test robot
2023-06-27 6:47 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