summaryrefslogtreecommitdiff
path: root/include/uapi
diff options
context:
space:
mode:
authorArtem Savkov <asavkov@redhat.com>2015-09-02 14:41:18 +0300
committerJani Nikula <jani.nikula@intel.com>2015-09-02 16:26:58 +0300
commit16f7249ddf831f5ec0e1358222ce5db300446b84 (patch)
tree192bf8117e41f550199eeba312e88b0461e5a4dd /include/uapi
parent51bc140431e233284660b1d22c47dec9ecdb521e (diff)
downloadlinux-16f7249ddf831f5ec0e1358222ce5db300446b84.tar.xz
uapi/drm/i915_drm.h: fix userspace compilation.
commit 346add7834557b5b9628b9bf2387106d42e631d4 Author: Daniel Vetter <daniel.vetter@ffwll.ch> Date: Tue Jul 14 18:07:30 2015 +0200 drm/i915: Use expcitly fixed type in compat32 structs changed the type of param field in drm_i915_getparam from int to s32. This header is exported to userspace and needs to use userspace type __s32 instead. This fixes userspace compilation errors like the following: include/drm/i915_drm.h:361:2: error: unknown type name 's32' s32 param; Signed-off-by: Artem Savkov <asavkov@redhat.com> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Diffstat (limited to 'include/uapi')
-rw-r--r--include/uapi/drm/i915_drm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/uapi/drm/i915_drm.h b/include/uapi/drm/i915_drm.h
index dbd16a2d37db..fd5aa47bd689 100644
--- a/include/uapi/drm/i915_drm.h
+++ b/include/uapi/drm/i915_drm.h
@@ -358,7 +358,7 @@ typedef struct drm_i915_irq_wait {
#define I915_PARAM_HAS_RESOURCE_STREAMER 36
typedef struct drm_i915_getparam {
- s32 param;
+ __s32 param;
/*
* WARNING: Using pointers instead of fixed-size u64 means we need to write
* compat32 code. Don't repeat this mistake.