[Intel-gfx] [PATCH] drm/i915/perf: Treat u64 in uabi as a normal integer

Chris Wilson chris at chris-wilson.co.uk
Wed Nov 30 16:46:49 UTC 2016


Forgo marking up the u64 integer representing a user pointer as this
just annoys sparse. The conversion from u64 to a user pointer is managed
by u64_to_user_ptr().

Fixes: eec688e1420d ("drm/i915: Add i915 perf infrastructure")
Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
Cc: Robert Bragg <robert at sixbynine.org>
Cc: Matthew Auld <matthew.auld at intel.com>
---
 include/uapi/drm/i915_drm.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/uapi/drm/i915_drm.h b/include/uapi/drm/i915_drm.h
index 686e02451789..9ba5a239d099 100644
--- a/include/uapi/drm/i915_drm.h
+++ b/include/uapi/drm/i915_drm.h
@@ -1369,7 +1369,7 @@ struct drm_i915_perf_open_param {
 	 * Pointer to array of u64 (id, value) pairs configuring the stream
 	 * to open.
 	 */
-	__u64 __user properties_ptr;
+	__u64 properties_ptr;
 };
 
 /**
-- 
2.10.2



More information about the Intel-gfx mailing list