ioctls/drm: Fix build errors due to undefined symbols.
PATCH 1/1 ioctls/drm: Fix build errors due to undefined symbols.
From: Vinson Lee <[email protected]>
This patch fixes these build errors on Fedora 22
3.18.0-0.rc0.git9.4.fc22.x86_64.
CC ioctls/drm.o
In file included from ioctls/drm.c:20:0:ioctls/drm.c:274:8: error: ‘DRM_IOCTL_EXYNOS_GEM_MAP_OFFSET’ undeclared here (not in a function)
IOCTL(DRM_IOCTL_EXYNOS_GEM_MAP_OFFSET),
^
include/ioctls.h:53:15: note: in definition of macro ‘IOCTL’
{ .request = _request, .name = #_request, }
^
ioctls/drm.c:275:8: error: ‘DRM_IOCTL_EXYNOS_GEM_MMAP’ undeclared here (not in a function)
IOCTL(DRM_IOCTL_EXYNOS_GEM_MMAP),
^
include/ioctls.h:53:15: note: in definition of macro ‘IOCTL’
{ .request = _request, .name = #_request, }
^Signed-off-by Vinson Lee <[email protected]>
--- ioctls/drm.c | 4 ++++ 1 file changed, 4 insertions(+)
ioctls/drm.c +4 -0
@@ -271,8 +271,12 @@ static const struct ioctl drm_ioctls[] = {#ifdef USE_DRM_EXYNOS /* exynos_drm.h */ IOCTL(DRM_IOCTL_EXYNOS_GEM_CREATE), +#ifdef DRM_IOCTL_EXYNOS_GEM_MAP_OFFSET IOCTL(DRM_IOCTL_EXYNOS_GEM_MAP_OFFSET), +#endif +#ifdef DRM_IOCTL_EXYNOS_GEM_MMAP IOCTL(DRM_IOCTL_EXYNOS_GEM_MMAP), +#endif #ifdef DRM_IOCTL_EXYNOS_GEM_GET IOCTL(DRM_IOCTL_EXYNOS_GEM_GET),#endif
Signature · 1 line
2.1.0