Arnd Bergmann 4b7775870b Introduce compat_u64 and compat_s64 types
One common problem with 32 bit system call and ioctl emulation is the
different alignment rules between i386 and 64 bit machines.  A number of
drivers work around this by marking the compat structures as
'attribute((packed))', which is not the right solution because it breaks
all the non-x86 architectures that want to use the same compat code.

Hopefully, this patch improves the situation, it introduces two new types,
compat_u64 and compat_s64.  These are defined on all architectures to have
the same size and alignment as the 32 bit version of u64 and s64.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: David S. Miller <davem@davemloft.net>
Cc: David Woodhouse <dwmw2@infradead.org>
Cc: Andi Kleen <ak@suse.de>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Vasily Tarasov <vtaras@openvz.org>
Cc: <linux-arch@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-07-16 09:05:48 -07:00
..
2007-04-27 16:20:23 +01:00
2005-04-16 15:20:36 -07:00
2006-10-04 18:06:15 +01:00
2007-04-27 16:20:24 +01:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2007-02-18 21:31:35 +00:00
2006-11-01 17:46:09 +00:00
2005-09-07 16:57:21 -07:00
2007-07-10 17:33:06 +01:00
2005-04-16 15:20:36 -07:00
2005-10-29 19:30:34 +01:00
2007-04-20 14:58:37 +01:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2007-07-10 17:33:03 +01:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2007-03-08 01:10:30 +00:00
2005-04-16 15:20:36 -07:00
2005-11-07 18:05:40 +00:00
2005-04-16 15:20:36 -07:00
2007-05-11 14:28:31 +01:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2007-07-10 17:32:55 +01:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2007-05-11 14:28:31 +01:00
2007-05-11 14:28:31 +01:00
2005-04-16 15:20:36 -07:00
2006-07-13 21:26:08 +01:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2007-05-08 11:15:20 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2007-07-11 16:02:11 -07:00
2005-04-16 15:20:36 -07:00
2007-05-21 09:18:19 -07:00
2007-07-16 09:05:36 -07:00
2005-04-16 15:20:36 -07:00
2007-05-11 08:29:34 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2006-06-19 17:39:19 +01:00
2005-04-16 15:20:36 -07:00
2007-05-02 19:02:34 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2007-03-24 17:01:49 +00:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2007-02-18 21:31:35 +00:00
2007-07-10 17:33:03 +01:00
2006-06-06 00:15:20 +01:00
2007-06-11 18:20:53 +01:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2007-07-10 17:33:05 +01:00
2005-04-16 15:20:36 -07:00
2007-07-12 17:41:11 +01:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2007-03-07 00:07:17 +00:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2007-07-10 17:33:05 +01:00
2005-04-16 15:20:36 -07:00