]> git.baikalelectronics.ru Git - kernel.git/commit
drm: Provide compat ioctl for addfb2.1
authorTvrtko Ursulin <tvrtko.ursulin@intel.com>
Tue, 14 Jul 2015 10:13:08 +0000 (11:13 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 15 Jul 2015 09:38:38 +0000 (11:38 +0200)
commitdc916b975b44db57501645360e283bfc4aa90fe4
tree8ab907fe4017aad8a8afe3e2e0d0f141216316da
parented582a08b702adfdbd6610e06002ddd4689df8cd
drm: Provide compat ioctl for addfb2.1

Frame buffer modifiers extensions provided in;

  commit 9f9bd4e36fcae0fd598fba9ef571094bf06341a0
  Author: Rob Clark <robdclark@gmail.com>
  Date:   Thu Feb 5 14:41:52 2015 +0000

      drm: add support for tiled/compressed/etc modifier in addfb2

Missed the structure packing/alignment problem where 64-bit
members were added after the odd number of 32-bit ones. This
makes the compiler produce structures of different sizes under
32- and 64-bit x86 targets and makes the ioctl need explicit
compat handling.

v2: Removed the typedef. (Daniel Vetter)

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: dri-devel@lists.freedesktop.org
Cc: Rob Clark <robdclark@gmail.com>
Cc: Daniel Stone <daniels@collabora.com>
Cc: Daniel Vetter <daniel.vetter@intel.com>
Cc: stable@vger.kernel.org
[danvet: Squash in compile fix from Mika.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_ioc32.c