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
..
2009-03-31 14:25:08 -07:00
2009-12-16 02:45:10 +00:00
2009-06-15 14:32:54 -07:00
2009-01-06 14:06:52 +01:00
2009-01-16 10:09:10 +01:00
2009-09-22 07:17:42 -07:00
2009-02-18 15:37:55 -08:00
2009-06-17 09:33:49 -07:00
2009-09-09 13:29:18 -07:00
2009-10-29 22:34:15 +09:00
2010-02-08 10:42:17 -08:00
2008-11-30 11:00:15 -08:00
2009-06-17 09:33:49 -07:00
2008-09-04 09:46:13 +01:00
2009-02-01 11:01:25 +05:30
2010-02-08 10:42:17 -08:00
2010-02-08 10:42:17 -08:00
2009-07-10 14:24:05 -07:00
2010-01-07 16:10:57 -08:00
2010-02-08 10:42:17 -08:00