diff options
author | Sumit Semwal <sumit.semwal@linaro.org> | 2017-10-23 09:42:22 +0200 |
---|---|---|
committer | Shuah Khan <shuahkh@osg.samsung.com> | 2017-11-15 16:01:43 +0100 |
commit | af7dc093467a917278ec3b61aea46377b4372d8c (patch) | |
tree | 2ad8595690e420dfd33fdb438ba3178e7af1cb73 /tools/testing/selftests/breakpoints | |
parent | selftests: add missing test result status in memory-hotplug test (diff) | |
download | linux-af7dc093467a917278ec3b61aea46377b4372d8c.tar.xz linux-af7dc093467a917278ec3b61aea46377b4372d8c.zip |
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/testing/selftests/breakpoints')
-rw-r--r-- | tools/testing/selftests/breakpoints/breakpoint_test_arm64.c | 1 |
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> |