trinity.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] fds/drm.c: Add forward declaration of struct.
@ 2016-05-26  0:05 Vinson Lee
  0 siblings, 0 replies; only message in thread
From: Vinson Lee @ 2016-05-26  0:05 UTC (permalink / raw)
  To: trinity

Fix build error.

  CC	fds/drm.o
fds/drm.c: In function ‘open_drm_fds’:
fds/drm.c:120:3: error: ‘drm_fd_provider’ undeclared (first use in this function)
   drm_fd_provider.enabled = FALSE;
   ^

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
---
 fds/drm.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/fds/drm.c b/fds/drm.c
index d33b00e4be51..54cc0faa8d1a 100644
--- a/fds/drm.c
+++ b/fds/drm.c
@@ -71,6 +71,8 @@ static void add_drm_obj(int fd)
 	output(2, "fd[%d] = drm\n", fd);
 }
 
+static struct fd_provider drm_fd_provider;
+
 static int open_drm_fds(void)
 {
 	struct objhead *head;
-- 
2.7.4

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2016-05-26  0:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-26  0:05 [PATCH] fds/drm.c: Add forward declaration of struct 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).