From: Sumit Semwal Date: Mon, 23 Oct 2017 07:42:22 +0000 (+0530) Subject: selftests: breakpoints: fix compile error on breakpoint_test_arm64 X-Git-Tag: v4.19~2137^2~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=af7dc093467a917278ec3b61aea46377b4372d8c;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: Shuah Khan --- diff --git a/tools/testing/selftests/breakpoints/breakpoint_test_arm64.c b/tools/testing/selftests/breakpoints/breakpoint_test_arm64.c index 960d021..2d95e5a 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 #include #include #include