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
..
2005-04-16 15:20:36 -07:00
2006-09-28 16:56:43 +02:00
2007-07-10 11:24:49 +02:00
2005-09-07 16:57:21 -07:00
2006-09-28 16:56:43 +02:00
2007-04-27 16:01:42 +02:00
2007-03-05 23:35:50 +01:00
2006-09-28 16:56:43 +02:00
2006-04-28 08:33:48 -07:00
2006-12-13 09:27:08 -08:00
2007-05-10 15:45:51 +02:00
2007-04-27 16:01:41 +02:00
2007-03-26 20:43:46 +02:00
2007-04-27 16:01:39 +02:00
2007-04-27 16:01:39 +02:00
2007-07-10 11:24:52 +02:00
2007-07-16 09:05:48 -07:00
2006-12-04 15:40:30 +01:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2006-12-08 15:54:15 +01:00
2006-09-16 12:54:31 -07:00
2005-04-16 15:20:36 -07:00
2006-12-01 14:52:01 -08:00
2006-09-28 16:55:39 +02:00
2006-09-20 15:58:51 +02:00
2006-09-28 16:56:43 +02:00
2007-05-04 18:48:35 +02:00
2005-07-26 14:35:41 -07:00
2005-04-16 15:20:36 -07:00
2007-02-05 21:18:19 +01:00
2005-04-16 15:20:36 -07:00
2005-09-07 16:57:38 -07:00
2007-01-09 10:18:50 +01:00
2007-02-05 21:18:19 +01:00
2006-04-26 12:56:16 +01:00
2007-02-12 15:49:57 +01:00
2006-01-10 08:01:34 -08: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-10 15:45:52 +02:00
2006-10-06 16:38:35 +02:00
2006-09-29 09:18:05 -07:00
2006-09-28 16:56:43 +02:00
2006-09-24 22:07:25 +01:00
2007-05-08 11:15:04 -07:00
2007-05-08 11:15:07 -07:00
2005-04-16 15:20:36 -07:00
2007-05-04 18:48:24 +02:00
2005-04-16 15:20:36 -07:00
2007-02-21 10:55:55 +01:00
2007-05-04 18:48:35 +02:00
2005-04-16 15:20:36 -07:00
2006-02-15 15:32:22 -08:00
2007-05-02 19:27:14 +02:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2006-09-20 15:59:34 +02:00
2005-04-16 15:20:36 -07:00
2006-01-09 15:59:19 -08:00
2005-04-16 15:20:36 -07:00
2006-12-08 15:56:07 +01:00
2007-05-10 15:46:08 +02:00
2005-04-16 15:20:36 -07:00
2006-10-06 08:53:41 -07:00
2007-02-05 21:18:17 +01:00
2007-07-16 09:05:36 -07:00
2007-05-11 08:29:34 -07:00
2007-01-11 18:18:22 -08:00
2007-07-10 11:24:53 +02:00
2007-06-19 13:10:20 +02:00
2007-05-08 01:16:23 -04:00
2005-04-16 15:20:36 -07:00
2007-02-05 21:18:37 +01:00
2005-04-16 15:20:36 -07:00
2006-09-28 16:56:43 +02:00
2006-10-06 16:38:35 +02:00
2006-01-14 18:27:10 -08:00
2005-04-16 15:20:36 -07:00
2007-07-10 11:24:43 +02:00
2007-02-21 10:55:37 +01:00
2005-04-16 15:20:36 -07:00
2006-09-28 16:56:43 +02:00
2005-04-16 15:20:36 -07:00
2007-04-27 16:01:44 +02:00
2007-07-10 11:24:47 +02:00
2007-07-10 11:24:47 +02:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2006-01-14 18:27:08 -08:00
2005-05-01 08:59:08 -07:00
2006-07-02 13:58:48 -07:00
2006-09-28 16:56:43 +02:00
2007-05-09 12:30:48 -07:00
2007-04-25 22:24:21 -07:00
2007-04-25 22:24:04 -07:00
2006-10-01 00:39:22 -07:00
2006-10-04 20:02:12 +02:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2006-09-28 16:56:43 +02:00
2005-04-16 15:20:36 -07:00
2007-02-05 21:18:17 +01:00
2007-02-05 21:18:26 +01:00
2007-07-10 17:51:13 -07:00
2007-02-11 10:51:26 -08:00
2006-06-29 15:02:47 +02:00
2007-02-05 21:16:47 +01:00
2007-02-05 21:18:22 +01:00
2005-04-16 15:20:36 -07:00
2007-02-05 21:18:17 +01:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2006-12-04 19:41:15 -08:00
2007-02-05 21:18:17 +01:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2007-05-21 11:25:28 +02:00
2005-06-04 17:13:00 -07:00
2006-05-04 01:18:33 +01:00
2005-04-16 15:20:36 -07:00
2006-12-04 15:40:00 +01:00