]> git.baikalelectronics.ru Git - kernel.git/commitdiff
um: Correctly check for PTRACE_GETRESET/SETREGSET
authorRichard Weinberger <richard@nod.at>
Thu, 6 Jul 2017 07:35:27 +0000 (09:35 +0200)
committerRichard Weinberger <richard@nod.at>
Mon, 10 Jul 2017 20:58:06 +0000 (22:58 +0200)
When checking for PTRACE_GETRESET/SETREGSET, make sure that
the correct header file is included. We need linux/ptrace.h
which contains all ptrace UAPI related defines.
Otherwise #if defined(PTRACE_GETRESET) is always false.

Cc: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
arch/x86/um/user-offsets.c

index 8af0fb5d27807a6b6abbec51622449723a8bf816..ae4cd58c0c7a403c8ba40f978e5d4221ce94bfc6 100644 (file)
@@ -5,7 +5,7 @@
 #include <sys/mman.h>
 #include <sys/user.h>
 #define __FRAME_OFFSETS
-#include <asm/ptrace.h>
+#include <linux/ptrace.h>
 #include <asm/types.h>
 
 #ifdef __i386__