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)
commit61e8d462457f202bf0c6393133425ad387825e22
tree21dabc717e6042e69bb3ff35803e08dc29be24ef
parent94df7fe0d3e6418113783ff646507287c233e1e3
um: Correctly check for PTRACE_GETRESET/SETREGSET

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