Christoph Hellwig e28cbf2293 improve sys_newuname() for compat architectures
On an architecture that supports 32-bit compat we need to override the
reported machine in uname with the 32-bit value.  Instead of doing this
separately in every architecture introduce a COMPAT_UTS_MACHINE define in
<asm/compat.h> and apply it directly in sys_newuname().

Signed-off-by: Christoph Hellwig <hch@lst.de>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mundt <lethal@linux-sh.org>
Cc: Jeff Dike <jdike@addtoit.com>
Cc: Hirokazu Takata <takata@linux-m32r.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: "Luck, Tony" <tony.luck@intel.com>
Cc: James Morris <jmorris@namei.org>
Cc: Andreas Schwab <schwab@linux-m68k.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-03-12 15:52:32 -08:00
..
2008-12-04 09:17:15 -08:00
2009-11-02 21:15:59 -08:00
2008-12-04 09:17:21 -08:00
2009-11-16 02:54:07 -08:00
2008-12-04 09:17:21 -08:00
2008-12-04 09:17:21 -08:00
2009-08-10 09:35:00 +02:00
2008-12-04 09:17:21 -08:00
2008-12-04 09:17:21 -08:00
2008-12-04 09:17:21 -08:00
2008-12-04 09:17:21 -08:00
2008-12-04 09:17:21 -08:00
2008-12-04 09:17:21 -08:00
2009-11-02 04:19:42 -08:00
2008-12-04 09:17:21 -08:00
2008-12-04 09:17:21 -08:00
2008-12-04 09:17:21 -08:00
2008-12-04 09:17:21 -08:00
2008-12-04 09:17:21 -08:00
2009-12-16 07:20:18 -08:00
2009-11-02 04:19:42 -08:00
2010-01-26 04:16:49 -08:00
2008-12-04 09:17:21 -08:00
2008-12-04 09:17:21 -08:00
2009-12-16 07:20:19 -08:00
2008-12-04 09:17:21 -08:00
2010-02-02 14:38:15 +09:00
2008-12-04 09:17:21 -08:00
2008-12-04 09:17:21 -08:00
2008-12-04 09:17:21 -08:00
2008-12-04 09:17:21 -08:00
2009-07-12 12:22:34 -07:00
2008-12-04 09:17:21 -08:00
2009-11-02 04:19:42 -08:00
2008-12-04 09:17:21 -08:00
2008-12-04 09:17:21 -08:00
2008-12-04 09:17:21 -08:00
2008-12-04 09:17:21 -08:00
2008-12-04 09:17:22 -08:00
2008-12-04 09:17:22 -08:00
2008-12-04 09:17:21 -08:00
2008-12-04 09:17:21 -08:00
2010-03-12 15:52:32 -08:00
2009-12-11 06:44:58 -05:00
2005-04-16 15:20:36 -07:00
2008-09-19 21:18:01 -07:00
2008-12-04 09:17:21 -08:00
2009-07-12 12:22:34 -07:00
2008-12-04 09:17:21 -08:00
2010-02-28 03:31:29 -08:00
2008-12-04 09:17:21 -08:00
2008-12-04 09:17:21 -08:00
2008-12-04 09:17:21 -08:00
2009-07-12 13:02:09 -07:00
2009-01-06 12:46:46 -08:00
2008-12-04 09:17:21 -08:00
2008-07-17 21:37:46 -07:00
2008-07-17 21:37:46 -07:00