summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorSumit Semwal <sumit.semwal@linaro.org>2017-10-23 13:12:22 +0530
committerShuah Khan <shuahkh@osg.samsung.com>2017-11-15 08:01:43 -0700
commitaf7dc093467a917278ec3b61aea46377b4372d8c (patch)
tree2ad8595690e420dfd33fdb438ba3178e7af1cb73 /tools
parentd3611d72070591b4255cdccf1bc0cc4f0e56b1a0 (diff)
downloadlinux-af7dc093467a917278ec3b61aea46377b4372d8c.tar.bz2
selftests: breakpoints: fix compile error on breakpoint_test_arm64
The current mainline breakpoints test for arm64 fails to compile with breakpoint_test_arm64.c: In function ‘set_watchpoint’: breakpoint_test_arm64.c:97:28: error: storage size of ‘dreg_state’ isn’t known struct user_hwdebug_state dreg_state; Adding a direct include for asm/ptrace.h helps it to build, and passes the test on mainline on hikey. Signed-off-by: Sumit Semwal <sumit.semwal@linaro.org> Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/testing/selftests/breakpoints/breakpoint_test_arm64.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/selftests/breakpoints/breakpoint_test_arm64.c b/tools/testing/selftests/breakpoints/breakpoint_test_arm64.c
index 960d02100c26..2d95e5adde72 100644
--- a/tools/testing/selftests/breakpoints/breakpoint_test_arm64.c
+++ b/tools/testing/selftests/breakpoints/breakpoint_test_arm64.c
@@ -19,6 +19,7 @@
#define _GNU_SOURCE
+#include <asm/ptrace.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <sys/ptrace.h>