ion_test: Add compat_ioctl support (v2)
authorJohn Stultz <john.stultz@linaro.org>
Thu, 19 Dec 2013 23:56:23 +0000 (15:56 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 20 Dec 2013 00:10:25 +0000 (16:10 -0800)
commit07300f43d63d31294ee22b0d53091a8aec4cbc2d
treead4ebdd451de9f128d10eadf51d872b62710227d
parent364014fda831917f37212715c72bf6db71a63a6d
ion_test: Add compat_ioctl support (v2)

Prior to subitting this, Colin reworked the compat_ioctl support
for the ion_test driver, moving the structure to be the same size
on both 32 and 64 bit architectures.

Two small things were left out. The compat_ioctl ptr assignment,
and the fact that despite having uniform sized types in the
structure, the structure pads out to different sizes on different
arches.

This patch resolves this issue by adding a padding entry after
the write flag, and adding the compat_ioctl ptr.

Changes in v2:
- Add a padding int rather then making write a u64

Acked-by: Colin Cross <ccross@android.com>
Cc: Android Kernel Team <kernel-team@android.com>
Signed-off-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/android/ion/ion_test.c
drivers/staging/android/uapi/ion_test.h