[PATCH] drm/exynos: fix g2d_open/close helper function definitions

Andi Shyti andi.shyti at kernel.org
Tue Apr 25 16:56:18 UTC 2023


Hi Arnd,

On Mon, Apr 17, 2023 at 11:04:11PM +0200, Arnd Bergmann wrote:
> From: Arnd Bergmann <arnd at arndb.de>
> 
> The empty stub functions are defined as global functions, which
> causes a warning because of missing prototypes:
> 
> drivers/gpu/drm/exynos/exynos_drm_g2d.h:37:5: error: no previous prototype for 'g2d_open'
> drivers/gpu/drm/exynos/exynos_drm_g2d.h:42:5: error: no previous prototype for 'g2d_close'
> 
> Mark them as 'static inline' to avoid the warning and to make
> them behave as intended.
> 
> Fixes: eb4d9796fa34 ("drm/exynos: g2d: Convert to driver component API")
> Signed-off-by: Arnd Bergmann <arnd at arndb.de>

Cc: <stable at vger.kernel.org> # v4.19+

Reviewed-by: Andi Shyti <andi.shyti at kernel.org> 

Thanks,
Andi


More information about the dri-devel mailing list