summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorFlorian Fainelli2017-07-19 01:43:47 +0200
committerRichard Weinberger2017-08-24 21:52:28 +0200
commit2fb44600fe784449404c6639de26af8361999ec7 (patch)
tree2ad0460f2e59fcbdf2b3e57779c21171a2656c14 /fs
parentLinux 4.13-rc6 (diff)
downloadkernel-qcow2-linux-2fb44600fe784449404c6639de26af8361999ec7.tar.gz
kernel-qcow2-linux-2fb44600fe784449404c6639de26af8361999ec7.tar.xz
kernel-qcow2-linux-2fb44600fe784449404c6639de26af8361999ec7.zip
um: Fix check for _xstate for older hosts
Commit 0a987645672e ("um: Allow building and running on older hosts") attempted to check for PTRACE_{GET,SET}REGSET under the premise that these ptrace(2) parameters were directly linked with the presence of the _xstate structure. After Richard's commit 61e8d462457f ("um: Correctly check for PTRACE_GETRESET/SETREGSET") which properly included linux/ptrace.h instead of asm/ptrace.h, we could get into the original build failure that I reported: arch/x86/um/user-offsets.c: In function 'foo': arch/x86/um/user-offsets.c:54: error: invalid application of 'sizeof' to incomplete type 'struct _xstate' On this particular host, we do have PTRACE_GETREGSET and PTRACE_SETREGSET defined in linux/ptrace.h, but not the structure _xstate that should be pulled from the following include chain: signal.h -> bits/sigcontext.h. Correctly fix this by checking for FP_XSTATE_MAGIC1 which is the correct way to see if struct _xstate is available or not on the host. Fixes: 61e8d462457f ("um: Correctly check for PTRACE_GETRESET/SETREGSET") Fixes: 0a987645672e ("um: Allow building and running on older hosts") Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions