linux/arch/s390/kernel
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
..
vdso32 Use macros for .data.page_aligned section. 2009-09-21 06:27:08 +02:00
vdso64 Use macros for .data.page_aligned section. 2009-09-21 06:27:08 +02:00
Makefile [S390] add support for compressed kernels 2010-02-26 22:37:33 +01:00
asm-offsets.c [S390] Cleanup struct _lowcore usage and defines. 2010-02-26 22:37:31 +01:00
audit.c
audit.h
base.S [S390] Cleanup struct _lowcore usage and defines. 2010-02-26 22:37:31 +01:00
bitmap.c
compat_audit.c
compat_exec_domain.c
compat_linux.c [S390] mmap: add missing compat_ptr conversion to both mmap compat syscalls 2010-01-13 20:44:45 +01:00
compat_linux.h Merge branch 'for-linus' of git://git390.marist.edu/pub/scm/linux-2.6 2009-12-09 19:01:47 -08:00
compat_ptrace.h
compat_signal.c [S390] 64-bit register support for 31-bit processes 2009-10-06 10:35:10 +02:00
compat_wrapper.S improve sys_newuname() for compat architectures 2010-03-12 15:52:32 -08:00
cpcmd.c
crash.c
debug.c tree-wide: convert open calls to remove spaces to skip_spaces() lib function 2009-12-15 08:53:32 -08:00
diag.c
dis.c [S390] add z9-ec/z10 instruction to kernel disassembler 2010-02-26 22:37:32 +01:00
early.c [S390] codepage conversion of kernel parameter line 2010-02-26 22:37:32 +01:00
ebcdic.c
entry.S [S390] Cleanup struct _lowcore usage and defines. 2010-02-26 22:37:31 +01:00
entry.h improve sys_newuname() for compat architectures 2010-03-12 15:52:32 -08:00
entry64.S [S390] Cleanup struct _lowcore usage and defines. 2010-02-26 22:37:31 +01:00
ftrace.c Merge branch 'tracing-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip 2010-02-28 10:17:55 -08:00
head.S [S390] add support for compressed kernels 2010-02-26 22:37:33 +01:00
head31.S [S390] add support for compressed kernels 2010-02-26 22:37:33 +01:00
head64.S [S390] add support for compressed kernels 2010-02-26 22:37:33 +01:00
init_task.c Use new __init_task_data macro in arch init_task.c files. 2009-09-21 06:27:08 +02:00
ipl.c [S390] Cleanup struct _lowcore usage and defines. 2010-02-26 22:37:31 +01:00
irq.c
kprobes.c
machine_kexec.c [S390] smp: always reboot on cpu 0 2010-02-26 22:37:30 +01:00
mcount.S
mcount64.S
mem_detect.c
module.c [S390] module: fix memory leak in s390 module loader 2009-10-06 10:35:06 +02:00
nmi.c
process.c [S390] remove superfluous TIF_USEDFPU bit 2010-01-13 20:44:44 +01:00
processor.c [S390] Add highgprs facility to /proc/cpuinfo 2009-10-14 12:43:53 +02:00
ptrace.c Merge branch 'tracing/core' of git://git.kernel.org/pub/scm/linux/kernel/git/frederic/random-tracing into tracing/core 2010-02-27 10:06:10 +01:00
reipl.S [S390] Cleanup struct _lowcore usage and defines. 2010-02-26 22:37:31 +01:00
reipl64.S [S390] Cleanup struct _lowcore usage and defines. 2010-02-26 22:37:31 +01:00
relocate_kernel.S
relocate_kernel64.S
s390_ext.c nohz: Introduce arch_needs_cpu 2009-11-05 07:53:53 +01:00
s390_ksyms.c
sclp.S [S390] add support for compressed kernels 2010-02-26 22:37:33 +01:00
setup.c [S390] Cleanup struct _lowcore usage and defines. 2010-02-26 22:37:31 +01:00
signal.c [S390] use set_current_state in sigsuspend 2010-01-27 10:12:49 +01:00
smp.c sysdev: fix missing s390 conversion 2010-03-07 17:04:48 -08:00
stacktrace.c
suspend.c [S390] hibernate: make sure pfn_is_nosave handles lowcore pages 2009-09-22 22:58:45 +02:00
switch_cpu.S [S390] Cleanup struct _lowcore usage and defines. 2010-02-26 22:37:31 +01:00
switch_cpu64.S [S390] Cleanup struct _lowcore usage and defines. 2010-02-26 22:37:31 +01:00
swsusp_asm64.S [S390] smp: rename and add lowcore defines 2010-02-26 22:37:30 +01:00
sys_s390.c improve sys_newuname() for compat architectures 2010-03-12 15:52:32 -08:00
syscalls.S improve sys_newuname() for compat architectures 2010-03-12 15:52:32 -08:00
sysinfo.c
time.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core-2.6 2010-03-08 10:17:20 -08:00
topology.c [S390] Move __cpu_logical_map to smp.c 2010-01-13 20:44:45 +01:00
traps.c [S390] ptrace: dont abuse PT_PTRACED 2009-12-18 17:43:32 +01:00
vdso.c [S390] Cleanup struct _lowcore usage and defines. 2010-02-26 22:37:31 +01:00
vmlinux.lds.S [S390] Enable kmemleak on s390. 2009-10-06 10:35:06 +02:00
vtime.c nohz: Introduce arch_needs_cpu 2009-11-05 07:53:53 +01:00