Skip to content

Commit 2ef0785

Browse files
arndbdaeinki
authored andcommitted
drm/exynos: fix g2d_open/close helper function definitions
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: eb4d979 ("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>
1 parent d8843ee commit 2ef0785

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/gpu/drm/exynos/exynos_drm_g2d.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ static inline int exynos_g2d_exec_ioctl(struct drm_device *dev, void *data,
3434
return -ENODEV;
3535
}
3636

37-
int g2d_open(struct drm_device *drm_dev, struct drm_file *file)
37+
static inline int g2d_open(struct drm_device *drm_dev, struct drm_file *file)
3838
{
3939
return 0;
4040
}
4141

42-
void g2d_close(struct drm_device *drm_dev, struct drm_file *file)
42+
static inline void g2d_close(struct drm_device *drm_dev, struct drm_file *file)
4343
{ }
4444
#endif

0 commit comments

Comments
 (0)