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

From: Andi Shyti
Date: Tue Apr 25 2023 - 12:56:33 EST


Hi Arnd,

On Mon, Apr 17, 2023 at 11:04:11PM +0200, Arnd Bergmann wrote:
> From: Arnd Bergmann <arnd@xxxxxxxx>
>
> 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@xxxxxxxx>

Cc: <stable@xxxxxxxxxxxxxxx> # v4.19+

Reviewed-by: Andi Shyti <andi.shyti@xxxxxxxxxx>

Thanks,
Andi