* [PATCH] ioctls/drm: Fix build errors due to undefined symbols.
@ 2014-10-22 0:04 Vinson Lee
0 siblings, 0 replies; only message in thread
From: Vinson Lee @ 2014-10-22 0:04 UTC (permalink / raw)
To: trinity; +Cc: Vinson Lee
From: Vinson Lee <vlee@twitter.com>
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@twitter.com>
---
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2014-10-22 0:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-22 0:04 [PATCH] ioctls/drm: Fix build errors due to undefined symbols Vinson Lee
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).