From: Petri Latvala <petri.latvala@intel.com>
To: intel-gfx@lists.freedesktop.org
Subject: [PATCH i-g-t] lib/igt_kms.c: Unconditionally include poll.h
Date: Tue, 9 Jan 2018 12:11:24 +0200 [thread overview]
Message-ID: <20180109101124.29060-1-petri.latvala@intel.com> (raw)
Commit 98c64b33a793 ("lib/igt_kms: Drop all stale events on first
commit.") added a use of poll() to igt_kms.c, but that file only
includes poll.h when HAVE_UDEV is defined. Move the include outside
the UDEV conditional.
Fixes: 98c64b33a793 ("lib/igt_kms: Drop all stale events on first commit.")
Signed-off-by: Petri Latvala <petri.latvala@intel.com>
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
---
lib/igt_kms.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/igt_kms.c b/lib/igt_kms.c
index ec3b7167..069752ec 100644
--- a/lib/igt_kms.c
+++ b/lib/igt_kms.c
@@ -40,8 +40,8 @@
#endif
#ifdef HAVE_UDEV
#include <libudev.h>
-#include <poll.h>
#endif
+#include <poll.h>
#include <errno.h>
#include <time.h>
--
2.14.1
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
next reply other threads:[~2018-01-09 10:11 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-09 10:11 Petri Latvala [this message]
2018-01-09 10:22 ` [PATCH i-g-t] lib/igt_kms.c: Unconditionally include poll.h Chris Wilson
2018-01-09 10:37 ` ✓ Fi.CI.BAT: success for " Patchwork
2018-01-09 11:03 ` [PATCH i-g-t] " Chris Wilson
2018-01-09 11:47 ` ✗ Fi.CI.IGT: failure for " Patchwork
2018-01-10 5:22 ` [PATCH i-g-t] " Rhys Kidd
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=20180109101124.29060-1-petri.latvala@intel.com \
--to=petri.latvala@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
/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