[media] v4l2-compat-ioctl32: fix alignment for ARM64
authorAndrzej Hajda <a.hajda@samsung.com>
Mon, 31 Aug 2015 11:56:15 +0000 (08:56 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Fri, 25 Sep 2015 20:20:25 +0000 (17:20 -0300)
commit655e9780ab913a3a06d4a164d55e3b755524186d
tree6c851f87a0a7596e3a580273e1931aa37caf6199
parent63ab664cebe5bbfd530d46ed7439e43aa4d45227
[media] v4l2-compat-ioctl32: fix alignment for ARM64

Alignment/padding rules on AMD64 and ARM64 differs. To allow properly match
compatible ioctls on ARM64 kernels without breaking AMD64 some fields
should be aligned using compat_s64 type and in one case struct should be
unpacked.

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Cc: <stable@vger.kernel.org> # for v3.10 and up
[hans.verkuil@cisco.com: use compat_u64 instead of compat_s64 in v4l2_input32]
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/v4l2-core/v4l2-compat-ioctl32.c