mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
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 <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
This commit is contained in:
parent
d3611d7207
commit
af7dc09346
1 changed files with 1 additions and 0 deletions
|
|
@ -19,6 +19,7 @@
|
|||
|
||||
#define _GNU_SOURCE
|
||||
|
||||
#include <asm/ptrace.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/wait.h>
|
||||
#include <sys/ptrace.h>
|
||||
|
|
|
|||
Loading…
Reference in a new issue