[PATCH 2/2] drm/imx: include dc-drv.h to avoid sparse warning
Liu Ying
victor.liu at nxp.com
Wed Jul 8 23:34:15 PDT 2026
On Wed, Jul 08, 2026 at 11:56:45AM +0200, Jiri Slaby (SUSE) wrote:
> sparse (build with C=1) warns:
> drivers/gpu/drm/imx/dc/dc-ic.c:273:24: warning: symbol 'dc_ic_driver' was not declared. Should it be static?
>
> And it is right. Include dc-drv.h which declares the struct. This
> ensures the types of both match.
>
> Signed-off-by: Jiri Slaby (SUSE) <jirislaby at kernel.org>
> Cc: Liu Ying <victor.liu at nxp.com>
> ---
> Cc: Maarten Lankhorst <maarten.lankhorst at linux.intel.com>
> Cc: Maxime Ripard <mripard at kernel.org>
> Cc: Thomas Zimmermann <tzimmermann at suse.de>
> Cc: David Airlie <airlied at gmail.com>
> Cc: Simona Vetter <simona at ffwll.ch>
> Cc: Frank Li <Frank.Li at nxp.com>
> Cc: Sascha Hauer <s.hauer at pengutronix.de>
> Cc: Pengutronix Kernel Team <kernel at pengutronix.de>
> Cc: Fabio Estevam <festevam at gmail.com>
> Cc: dri-devel at lists.freedesktop.org
> Cc: imx at lists.linux.dev
> Cc: linux-arm-kernel at lists.infradead.org
> ---
> drivers/gpu/drm/imx/dc/dc-ic.c | 2 ++
> 1 file changed, 2 insertions(+)
Reviewed-by: Liu Ying <victor.liu at nxp.com>
Thanks.
More information about the linux-arm-kernel
mailing list