vme_user: Update API to work in mixed environments
authorAaron Sierra <asierra@xes-inc.com>
Mon, 9 Dec 2013 16:05:40 +0000 (10:05 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Dec 2013 01:06:19 +0000 (17:06 -0800)
commit66a01f1158cf5dbe18dd2d5db7bb24080363ae21
tree18e940199aaf250110cf95edf7f352c91b30889a
parentc326cc023e40ef741751a084b72796947bd37a66
vme_user: Update API to work in mixed environments

This patch updates the vme_master and vme_slave structures to use
types with well defined size and to prevent the compiler from
inserting padding (between enable and vme_addr for one).

The original vme_master and vme_slave structs would be different
sizes and have different layouts depending on whether they were built
for a 32-bit or 64-bit system.

On x86 it is possible to have a 32-bit userspace and a 64-bit kernel.
In this type of environment, the userspace and kernel vme_user APIs
would disagree and prevent ioctls from executing (based on ioctl
signatures from _IOR and _IOW).

Signed-off-by: Aaron Sierra <asierra@xes-inc.com>
Acked-by: Martyn Welch <martyn.welch@ge.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vme/devices/vme_user.h