[igt-dev] [PATCH i-g-t 01/29] Remove unused includes
D Scott Phillips
d.scott.phillips at intel.com
Wed Dec 11 00:52:07 UTC 2019
<linux/unistd.h> and <malloc.h> are not needed and are not
available on other platforms.
Signed-off-by: D Scott Phillips <d.scott.phillips at intel.com>
---
benchmarks/gem_syslatency.c | 2 --
tests/i915/gem_reloc_overflow.c | 1 -
2 files changed, 3 deletions(-)
diff --git a/benchmarks/gem_syslatency.c b/benchmarks/gem_syslatency.c
index 40230630..30722d85 100644
--- a/benchmarks/gem_syslatency.c
+++ b/benchmarks/gem_syslatency.c
@@ -42,8 +42,6 @@
#include <limits.h>
#include "drm.h"
-#include <linux/unistd.h>
-
#define sigev_notify_thread_id _sigev_un._tid
static volatile int done;
diff --git a/tests/i915/gem_reloc_overflow.c b/tests/i915/gem_reloc_overflow.c
index c9d1f207..75af2659 100644
--- a/tests/i915/gem_reloc_overflow.c
+++ b/tests/i915/gem_reloc_overflow.c
@@ -37,7 +37,6 @@
#include <inttypes.h>
#include <errno.h>
#include <unistd.h>
-#include <malloc.h>
#include <limits.h>
#include <sys/ioctl.h>
#include <sys/stat.h>
--
2.23.0
More information about the igt-dev
mailing list