summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKristian H. Kristensen <hoegsberg@gmail.com>2016-09-13 14:20:45 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-09-24 10:07:43 +0200
commite765e0454f5ef83f62903ea858aab36bfe41bdf1 (patch)
tree90620a24b234c66ab4aa9347a9e90983f9d4c5bd /include
parentf4877097201684942a975b8c9d6a0c96583bdd4c (diff)
drm: Only use compat ioctl for addfb2 on X86/IA64
commit 47a66e45d7a7613322549c2475ea9d809baaf514 upstream. Similar to struct drm_update_draw, struct drm_mode_fb_cmd2 has an unaligned 64 bit field (modifier). This get packed differently between 32 bit and 64 bit modes on architectures that can handle unaligned 64 bit access (X86 and IA64). Other architectures pack the structs the same and don't need the compat wrapper. Use the same condition for drm_mode_fb_cmd2 as we use for drm_update_draw. Note that only the modifier will be packed differently between compat and non-compat versions. Reviewed-by: Rob Clark <robdclark@gmail.com> Signed-off-by: Kristian H. Kristensen <hoegsberg@chromium.org> [seanpaul added not at bottom of commit msg re: modifier] Signed-off-by: Sean Paul <seanpaul@chromium.org> Link: http://patchwork.freedesktop.org/patch/msgid/1473801645-116011-1-git-send-email-hoegsberg@chromium.org Signed-off-by: Dave Airlie <airlied@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions