Kyle Huey
17a6e1b8e8
x86/arch_prctl/64: Rename do_arch_prctl() to do_arch_prctl_64()
...
In order to introduce new arch_prctls that are not 64 bit only, rename the
existing 64 bit implementation to do_arch_prctl_64(). Also rename the
second argument of that function from 'addr' to 'arg2', because it will no
longer always be an address.
Signed-off-by: Kyle Huey <[email protected] >
Reviewed-by: Andy Lutomirski <[email protected] >
Cc: Grzegorz Andrejczuk <[email protected] >
Cc: [email protected]
Cc: Radim Krčmář <[email protected] >
Cc: Peter Zijlstra <[email protected] >
Cc: Dave Hansen <[email protected] >
Cc: Andi Kleen <[email protected] >
Cc: [email protected]
Cc: Nadav Amit <[email protected] >
Cc: Robert O'Callahan <[email protected] >
Cc: Richard Weinberger <[email protected] >
Cc: "Rafael J. Wysocki" <[email protected] >
Cc: Borislav Petkov <[email protected] >
Cc: Len Brown <[email protected] >
Cc: Shuah Khan <[email protected] >
Cc: [email protected]
Cc: Jeff Dike <[email protected] >
Cc: Alexander Viro <[email protected] >
Cc: [email protected]
Cc: David Matlack <[email protected] >
Cc: Boris Ostrovsky <[email protected] >
Cc: Dmitry Safonov <[email protected] >
Cc: [email protected]
Cc: Paolo Bonzini <[email protected] >
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Thomas Gleixner <[email protected] >
2017-03-20 16:10:32 +01:00
Kyle Huey
dd93938a92
x86/arch_prctl: Rename 'code' argument to 'option'
...
The x86 specific arch_prctl() arbitrarily changed prctl's 'option' to
'code'. Before adding new options, rename it.
Signed-off-by: Kyle Huey <[email protected] >
Cc: Grzegorz Andrejczuk <[email protected] >
Cc: [email protected]
Cc: Radim Krčmář <[email protected] >
Cc: Peter Zijlstra <[email protected] >
Cc: Dave Hansen <[email protected] >
Cc: Andi Kleen <[email protected] >
Cc: [email protected]
Cc: Nadav Amit <[email protected] >
Cc: Robert O'Callahan <[email protected] >
Cc: Richard Weinberger <[email protected] >
Cc: "Rafael J. Wysocki" <[email protected] >
Cc: Borislav Petkov <[email protected] >
Cc: Andy Lutomirski <[email protected] >
Cc: Len Brown <[email protected] >
Cc: Shuah Khan <[email protected] >
Cc: [email protected]
Cc: Jeff Dike <[email protected] >
Cc: Alexander Viro <[email protected] >
Cc: [email protected]
Cc: David Matlack <[email protected] >
Cc: Boris Ostrovsky <[email protected] >
Cc: Dmitry Safonov <[email protected] >
Cc: [email protected]
Cc: Paolo Bonzini <[email protected] >
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Thomas Gleixner <[email protected] >
2017-03-20 16:10:32 +01:00
Richard Weinberger
b5c04da022
um: prctl: Do not include linux/ptrace.h
...
On recent toolchains we hit:
In file included from arch/x86/um/os-Linux/prctl.c:7:0:
/usr/include/linux/ptrace.h:58:8: error: redefinition of ‘struct
ptrace_peeksiginfo_args’ struct ptrace_peeksiginfo_args {
^
In file included from arch/x86/um/os-Linux/prctl.c:6:0:
/usr/include/sys/ptrace.h:191:8: note: originally defined here
struct ptrace_peeksiginfo_args
^
make[2]: *** [arch/x86/um/os-Linux/prctl.o] Error 1
make[1]: *** [arch/x86/um/os-Linux] Error 2
make: *** [arch/x86/um] Error 2
The solution is not to include linux/ptrace.h and obtain
the arch specific ptrace command from asm/ptrace.h.
Reported-and-tested-by: David Oberhollenzer <[email protected] >
Signed-off-by: Richard Weinberger <[email protected] >
2013-09-07 10:57:11 +02:00
Al Viro
5c48b108ec
um: take arch/um/sys-x86 to arch/x86/um
...
Signed-off-by: Al Viro <[email protected] >
Signed-off-by: Richard Weinberger <[email protected] >
2011-11-02 14:15:05 +01:00