Please sign in to comment.
drm: Only use compat ioctl for addfb2 on X86/IA64
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 <email@example.com> Signed-off-by: Kristian H. Kristensen <firstname.lastname@example.org> [seanpaul added not at bottom of commit msg re: modifier] Signed-off-by: Sean Paul <email@example.com> Link: http://firstname.lastname@example.org Cc: email@example.com Signed-off-by: Dave Airlie <firstname.lastname@example.org>
- Loading branch information...