From: Jeff Dike uml-stop-saving-process-fp-state.patch broke the UML/x86_64 build. On x86_64, sys/ptrace.h has to be included before asm/ptrace.h. Otherwise, the defines in asm/ptrace.h will ruin the parse of sys/ptrace.h - asm/ptrace.h: #define PTRACE_GETREGS 12 sys/ptrace.h: enum __ptrace_request { ... PTRACE_GETREGS = 12, ... } Also, errno.h was missing. Signed-off-by: Jeff Dike Signed-off-by: Andrew Morton --- arch/um/os-Linux/sys-x86_64/registers.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff -puN arch/um/os-Linux/sys-x86_64/registers.c~uml-stop-saving-process-fp-state-fix arch/um/os-Linux/sys-x86_64/registers.c --- a/arch/um/os-Linux/sys-x86_64/registers.c~uml-stop-saving-process-fp-state-fix +++ a/arch/um/os-Linux/sys-x86_64/registers.c @@ -3,9 +3,10 @@ * Licensed under the GPL */ +#include +#include #define __FRAME_OFFSETS #include -#include #include "longjmp.h" #include "user.h" _