trinity.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Vinson Lee <vlee@twopensource.com>
To: trinity@vger.kernel.org
Cc: Vinson Lee <vlee@twitter.com>
Subject: [PATCH] ioctls/drm: Fix build errors due to undefined symbols.
Date: Tue, 21 Oct 2014 17:04:03 -0700	[thread overview]
Message-ID: <1413936243-8950-1-git-send-email-vlee@twopensource.com> (raw)

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

                 reply	other threads:[~2014-10-22  0:04 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1413936243-8950-1-git-send-email-vlee@twopensource.com \
    --to=vlee@twopensource.com \
    --cc=trinity@vger.kernel.org \
    --cc=vlee@twitter.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).