aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/drm/i915_drm.h
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2015-07-14 18:07:30 +0200
committerDaniel Vetter <daniel.vetter@ffwll.ch>2015-07-15 11:39:59 +0200
commit346add7834557b5b9628b9bf2387106d42e631d4 (patch)
tree3d3f3ffe14062beef7065490ab1f23e992c3ddeb /include/uapi/drm/i915_drm.h
parentdrm/i915: Fix noatomic crtc disabling, v2. (diff)
downloadlinux-dev-346add7834557b5b9628b9bf2387106d42e631d4.tar.xz
linux-dev-346add7834557b5b9628b9bf2387106d42e631d4.zip
drm/i915: Use expcitly fixed type in compat32 structs
I was confused shortly whether the compat was needed for the int, until I noticed the pointer in the original. Also remove typedef. v2: Review from Chris. - Add comments. - Also change the int param in the original structure. Cc: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Daniel Vetter <daniel.vetter@intel.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to '')
-rw-r--r--include/uapi/drm/i915_drm.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/uapi/drm/i915_drm.h b/include/uapi/drm/i915_drm.h
index e7c29f1659ad..192027b4f031 100644
--- a/include/uapi/drm/i915_drm.h
+++ b/include/uapi/drm/i915_drm.h
@@ -358,7 +358,11 @@ typedef struct drm_i915_irq_wait {
#define I915_PARAM_HAS_RESOURCE_STREAMER 36
typedef struct drm_i915_getparam {
- int param;
+ s32 param;
+ /*
+ * WARNING: Using pointers instead of fixed-size u64 means we need to write
+ * compat32 code. Don't repeat this mistake.
+ */
int __user *value;
} drm_i915_getparam_t;