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: eb4d9796fa
("drm/exynos: g2d: Convert to driver component API")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Andi Shyti <andi.shyti@kernel.org>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
44 lines
1.2 KiB
C
44 lines
1.2 KiB
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Copyright (C) 2012 Samsung Electronics Co.Ltd
|
|
* Authors: Joonyoung Shim <jy0922.shim@samsung.com>
|
|
*/
|
|
|
|
#ifdef CONFIG_DRM_EXYNOS_G2D
|
|
extern int exynos_g2d_get_ver_ioctl(struct drm_device *dev, void *data,
|
|
struct drm_file *file_priv);
|
|
extern int exynos_g2d_set_cmdlist_ioctl(struct drm_device *dev, void *data,
|
|
struct drm_file *file_priv);
|
|
extern int exynos_g2d_exec_ioctl(struct drm_device *dev, void *data,
|
|
struct drm_file *file_priv);
|
|
|
|
extern int g2d_open(struct drm_device *drm_dev, struct drm_file *file);
|
|
extern void g2d_close(struct drm_device *drm_dev, struct drm_file *file);
|
|
#else
|
|
static inline int exynos_g2d_get_ver_ioctl(struct drm_device *dev, void *data,
|
|
struct drm_file *file_priv)
|
|
{
|
|
return -ENODEV;
|
|
}
|
|
|
|
static inline int exynos_g2d_set_cmdlist_ioctl(struct drm_device *dev,
|
|
void *data,
|
|
struct drm_file *file_priv)
|
|
{
|
|
return -ENODEV;
|
|
}
|
|
|
|
static inline int exynos_g2d_exec_ioctl(struct drm_device *dev, void *data,
|
|
struct drm_file *file_priv)
|
|
{
|
|
return -ENODEV;
|
|
}
|
|
|
|
static inline int g2d_open(struct drm_device *drm_dev, struct drm_file *file)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
static inline void g2d_close(struct drm_device *drm_dev, struct drm_file *file)
|
|
{ }
|
|
#endif
|