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)
committerGreg Hackmann <ghackmann@google.com>
Thu, 27 Mar 2014 17:20:42 +0000 (10:20 -0700)
commit0c423165c11dc5efe70a7f436080a7c549fc9878
treebfdf70082352b3228df1ef3cc59d16987c2c26bc
parente42126fcf1525129f25c895d26ddd868e5d4dff9
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