video: adf: ensure consistent alignment on userspace facing structs
authorGreg Hackmann <ghackmann@google.com>
Wed, 26 Mar 2014 23:43:23 +0000 (16:43 -0700)
committerJohn Stultz <john.stultz@linaro.org>
Tue, 16 Feb 2016 21:53:19 +0000 (13:53 -0800)
commit9d84e01be114263942b18a3894684a99f8a22ce7
treedbaf19b88852f094e77bb04de331391f373ec126
parent41bda719aa49b512ea43f8f1dfbf6fdbfdf5addb
video: adf: ensure consistent alignment on userspace facing structs

64-bit types in structs create alignment problems when a 32-bit x86
userspace talks to an x86_64 kernel.  In most cases the 64-bit types can
be replaced with 32-bit ones, since they're being used for fds and
should have been __s32 in the first place.  For adf_vsync_event,
alignment can be enforced by making the timestamp an __aligned_u64.

Change-Id: I87cf73d8f57730bd7bb43ffce6b7b411eb0ff198
Signed-off-by: Greg Hackmann <ghackmann@google.com>
drivers/video/adf/adf_fops.c
drivers/video/adf/adf_fops32.h
include/uapi/video/adf.h