[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Vinson Lee <vlee@xxxxxxxxxxx>

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 <vlee@xxxxxxxxxxx>
---
 ioctls/drm.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/ioctls/drm.c b/ioctls/drm.c
index 1f6174a..dd3cc43 100644
--- a/ioctls/drm.c
+++ b/ioctls/drm.c
@@ -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
-- 
2.1.0

--
To unsubscribe from this list: send the line "unsubscribe trinity" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux SCSI]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux