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> --- ioctls/drm.c | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/ioctls/drm.c b/ioctls/drm.c index afb3147..8f3dfd0 100644 --- a/ioctls/drm.c +++ b/ioctls/drm.c @@ -176,12 +176,20 @@ static const struct ioctl drm_ioctls[] = { IOCTL(DRM_IOCTL_EXYNOS_GEM_CREATE), IOCTL(DRM_IOCTL_EXYNOS_GEM_MAP_OFFSET), IOCTL(DRM_IOCTL_EXYNOS_GEM_MMAP), +#ifdef DRM_IOCTL_EXYNOS_GEM_GET IOCTL(DRM_IOCTL_EXYNOS_GEM_GET), +#endif IOCTL(DRM_IOCTL_EXYNOS_VIDI_CONNECTION), +#ifdef DRM_IOCTL_EXYNOS_G2D_GET_VER IOCTL(DRM_IOCTL_EXYNOS_G2D_GET_VER), +#endif +#ifdef DRM_IOCTL_EXYNOS_G2D_SET_CMDLIST IOCTL(DRM_IOCTL_EXYNOS_G2D_SET_CMDLIST), +#endif +#ifdef DRM_IOCTL_EXYNOS_G2D_EXEC IOCTL(DRM_IOCTL_EXYNOS_G2D_EXEC), #endif +#endif /* i810_drm.h */ IOCTL(DRM_IOCTL_I810_INIT), -- 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