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

 



This patch fixes these build errors with Linux 3.4 and earlier.

  CC    ioctls/drm.o
ioctls/drm.c:179: error: ‘DRM_IOCTL_EXYNOS_GEM_GET’ undeclared here (not in a function)
ioctls/drm.c:181: error: ‘DRM_IOCTL_EXYNOS_G2D_GET_VER’ undeclared here (not in a function)
ioctls/drm.c:182: error: ‘DRM_IOCTL_EXYNOS_G2D_SET_CMDLIST’ undeclared here (not in a function)
ioctls/drm.c:183: error: ‘DRM_IOCTL_EXYNOS_G2D_EXEC’ undeclared here (not in a function)
make: *** [ioctls/drm.o] Error 1

Signed-off-by: Vinson Lee <vlee@xxxxxxxxxxx>
---
 include/compat.h |   14 ++++++++++++++
 ioctls/drm.c     |    1 +
 2 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/include/compat.h b/include/compat.h
index 934ec78..70cf34c 100644
--- a/include/compat.h
+++ b/include/compat.h
@@ -487,4 +487,18 @@ struct sockaddr_nfc {
 #define IN_EXCL_UNLINK	0x04000000	/* exclude events on unlinked objects */
 #endif
 
+/* drm/exynos_drm.h */
+#ifndef DRM_IOCTL_EXYNOS_GEM_GET
+#define DRM_IOCTL_EXYNOS_GEM_GET 0x04
+#endif
+#ifndef DRM_IOCTL_EXYNOS_G2D_GET_VER
+#define DRM_IOCTL_EXYNOS_G2D_GET_VER 0x20
+#endif
+#ifndef DRM_IOCTL_EXYNOS_G2D_SET_CMDLIST
+#define DRM_IOCTL_EXYNOS_G2D_SET_CMDLIST 0x21
+#endif
+#ifndef DRM_IOCTL_EXYNOS_G2D_EXEC
+#define DRM_IOCTL_EXYNOS_G2D_EXEC 0x22
+#endif
+
 #endif	/* _TRINITY_COMPAT_H */
diff --git a/ioctls/drm.c b/ioctls/drm.c
index afb3147..82b300e 100644
--- a/ioctls/drm.c
+++ b/ioctls/drm.c
@@ -17,6 +17,7 @@
 
 #include "trinity.h"
 #include "ioctls.h"
+#include "compat.h"
 
 /* Copy-paste relevant stuff from header, as it is buggy. */
 /* #include <drm/sis_drm.h> */
-- 
1.7.1

--
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