2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-29 23:53:55 +08:00
linux-next/arch/x86/um/os-Linux
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 <david.oberhollenzer@tele2.at>
Signed-off-by: Richard Weinberger <richard@nod.at>
2013-09-07 10:57:11 +02:00
..
Makefile um: take arch/um/sys-x86 to arch/x86/um 2011-11-02 14:15:05 +01:00
mcontext.c um: take arch/um/sys-x86 to arch/x86/um 2011-11-02 14:15:05 +01:00
prctl.c um: prctl: Do not include linux/ptrace.h 2013-09-07 10:57:11 +02:00
registers.c um: get rid of pointless include "..." where include <...> will do 2012-10-09 22:28:45 +02:00
task_size.c um: get rid of pointless include "..." where include <...> will do 2012-10-09 22:28:45 +02:00
tls.c um: get rid of pointless include "..." where include <...> will do 2012-10-09 22:28:45 +02:00