[PATCH v2] drm/sitronix/st7571-i2c: Make st7571_panel_data variables static const
Dmitry Baryshkov
dmitry.baryshkov at oss.qualcomm.com
Sun Aug 3 11:56:24 UTC 2025
On Fri, Jul 18, 2025 at 05:25:25PM +0200, Javier Martinez Canillas wrote:
> The kernel test robot reported that sparse gives the following warnings:
>
> make C=2 M=drivers/gpu/drm/sitronix/
> CC [M] st7571-i2c.o
> CHECK st7571-i2c.c
> st7571-i2c.c:1027:26: warning: symbol 'st7567_config' was not declared. Should it be static?
> st7571-i2c.c:1039:26: warning: symbol 'st7571_config' was not declared. Should it be static?
> MODPOST Module.symvers
> LD [M] st7571-i2c.ko
>
> Reported-by: kernel test robot <lkp at intel.com>
> Closes: https://lore.kernel.org/oe-kbuild-all/202507180503.nfyD9uRv-lkp@intel.com
> Signed-off-by: Javier Martinez Canillas <javierm at redhat.com>
> ---
>
> Changes in v2:
> - Also make the st7571_panel_data variables to be const (Thomas Zimmermann).
>
> drivers/gpu/drm/sitronix/st7571-i2c.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov at oss.qualcomm.com>
--
With best wishes
Dmitry
More information about the dri-devel
mailing list