drivers/gpu/drm/sti/sti_mixer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
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
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
> 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; >
© 2016 - 2024 Red Hat, Inc.