diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2017-06-20 14:39:14 +0300 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2017-06-23 11:06:31 +0300 |
commit | 6545135a5ed2eac064f23bee3a19a81cfffbe573 (patch) | |
tree | d2167f5f3ea3a5c7d19872a5346cf9e409ad0377 /include | |
parent | 8814b40bf6b2293eede832d35957b4e9ba495ae3 (diff) | |
download | linux-6545135a5ed2eac064f23bee3a19a81cfffbe573.tar.xz |
drm/qxl: fix __user annotations
Drop them from u64 fields, tag local variables correctly instead.
While being at it switch the code to use u64_to_user_ptr().
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Acked-by: Daniel Vetter <daniel@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20170620113916.6967-2-kraxel@redhat.com
Diffstat (limited to 'include')
-rw-r--r-- | include/uapi/drm/qxl_drm.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/uapi/drm/qxl_drm.h b/include/uapi/drm/qxl_drm.h index 7eef42213051..880999d2d863 100644 --- a/include/uapi/drm/qxl_drm.h +++ b/include/uapi/drm/qxl_drm.h @@ -80,8 +80,8 @@ struct drm_qxl_reloc { }; struct drm_qxl_command { - __u64 __user command; /* void* */ - __u64 __user relocs; /* struct drm_qxl_reloc* */ + __u64 command; /* void* */ + __u64 relocs; /* struct drm_qxl_reloc* */ __u32 type; __u32 command_size; __u32 relocs_num; @@ -91,7 +91,7 @@ struct drm_qxl_command { struct drm_qxl_execbuffer { __u32 flags; /* for future use */ __u32 commands_num; - __u64 __user commands; /* struct drm_qxl_command* */ + __u64 commands; /* struct drm_qxl_command* */ }; struct drm_qxl_update_area { |