Skip to contentSkip to conversation

benchmarks/gem_latency: Fix compiler warning

PATCH In review Mika Kahola 2 participants 2 messages Feb 24, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 benchmarks/gem_latency: Fix compiler warning

Fix compiler warning about I915_EXEC_FENCE_OUT definition/redefinition as it is defined in libdrm/i915_drm.h:890:0

gem_latency.c:48:0: warning: "I915_EXEC_FENCE_OUT" redefined
#define I915_EXEC_FENCE_OUT (1 << 17)
^
In file included from ../lib/intel_batchbuffer.h:6:0,

                 from ../lib/drmtest.h:39,
                 from ../lib/igt.h:27,
                 from gem_latency.c:31:
---
 benchmarks/gem_latency.c | 1 -
 1 file changed, 1 deletion(-)
benchmarks/gem_latency.c +0 -1
index 154c5f1..7be78f2 100644
@@ -45,7 +45,6 @@
 #include <sys/resource.h>
 #include "drm.h"
 
-#define I915_EXEC_FENCE_OUT (1 << 17)
 #define LOCAL_IOCTL_I915_GEM_EXECBUFFER2_WR       DRM_IOWR(DRM_COMMAND_BASE + DRM_I915_GEM_EXECBUFFER2, struct drm_i915_gem_execbuffer2)
 
 #define CONTEXT		0x1
Signature · 6 lines
2.7.4

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
#1 lore raw
Quoted 7 lines · Mika Kahola

Fix compiler warning about I915_EXEC_FENCE_OUT definition/redefinition as it is defined in libdrm/i915_drm.h:890:0

gem_latency.c:48:0: warning: "I915_EXEC_FENCE_OUT" redefined
#define I915_EXEC_FENCE_OUT (1 << 17)
^
In file included from ../lib/intel_batchbuffer.h:6:0,

Quoted 5 lines
                 from ../lib/drmtest.h:39,
                 from ../lib/igt.h:27,
                 from gem_latency.c:31:

Rb.
-Chris

Signature · 5 lines
Chris Wilson, Intel Open Source Technology Centre
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx