David Woodhouse f4d2781731 fix radeon setparam on 32/64 systems, harder.
Commit 9b01bd5b284bbf519b726b39f1352023cb5e9e69 introduced a
compat_ioctl handler for RADEON_SETPARAM, the sole purpose of which was
to handle the fact that on i386, alignof(uint64_t)==4.

Unfortunately, this handler was installed for _all_ 64-bit
architectures, instead of only x86_64 and ia64.  And thus it breaks
32-bit compatibility on every other arch, where 64-bit integers are
aligned to 8 bytes in 32-bit mode just the same as in 64-bit mode.

Arnd has a cunning plan to use 'compat_u64' with appropriate alignment
attributes according to the 32-bit ABI, but for now let's just make the
compat_radeon_cp_setparam routine entirely disappear on 64-bit machines
whose 32-bit compat support isn't for i386.  It would be a no-op with
compat_u64 anyway.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Dave Airlie <airlied@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-06-16 09:39:05 -07:00
..
2007-05-09 12:30:49 -07:00
2007-05-11 08:29:34 -07:00
2007-05-12 10:55:39 -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:12 -07:00
2005-04-16 15:20:36 -07:00
2007-05-23 20:14:13 -07:00
2006-12-07 08:39:41 -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-08 11:15:09 -07:00
2007-05-08 11:15:13 -07:00
2006-10-04 07:55:13 -07:00
2005-04-16 15:20:36 -07:00
2006-12-08 08:28:57 -08:00
2007-05-21 09:18:19 -07:00
2006-12-08 08:28:57 -08:00
2007-05-08 11:15:24 -07:00
2007-02-11 10:51:26 -08:00
2007-05-21 14:34:04 +09:00
2007-03-17 01:03:26 +00:00
2007-02-20 17:11:55 +00:00
2007-05-07 12:13:04 -07:00
2005-05-04 07:33:13 -07:00
2007-05-08 11:53:27 -07:00
2007-05-08 11:15:14 -07:00
2007-02-12 09:48:30 -08:00
2007-05-29 20:09:34 -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:13 -07:00
2006-01-12 09:09:00 -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
2005-04-16 15:20:36 -07:00
2007-02-12 09:48:30 -08:00
2006-12-13 09:05:49 -08:00
2006-12-08 08:28:59 -08:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2007-05-11 08:29:34 -07:00
2007-02-12 09:48:30 -08:00
2007-05-08 11:15:05 -07:00
2006-12-20 16:37:48 +11:00