Skip to contentSkip to conversation

ioctls/drm: Fix build errors due to undefined symbols.

PATCH New Vinson Lee 1 participant 1 message Oct 22, 2014

lore
Share & tools
lore

Vinson Lee

author
#0 lore raw

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, }
               ^
---
 ioctls/drm.c | 4 ++++
 1 file changed, 4 insertions(+)
ioctls/drm.c +4 -0
index 1f6174a..dd3cc43 100644
@@ -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