Skip to content

Commit d7a33f4

Browse files
Dave P Martinwildea01
Dave P Martin
authored andcommitted
arm64/debug: Add missing #includes
<asm/debug-monitors.h> relies on <asm/ptrace.h>, but doesn't declare this dependency. This becomes a problem once debug-monitors.h starts getting included all over the place to get the BRK immedates. The missing include of <asm/memory.h> (for UL()) in <asm/esr.h> is also added. The series no longer relies on this, but I spotted it during development and it may as well get fixed. No functional change. Signed-off-by: Dave Martin <[email protected]> Signed-off-by: Will Deacon <[email protected]>
1 parent c696b93 commit d7a33f4

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

arch/arm64/include/asm/debug-monitors.h

+3
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,11 @@
1818

1919
#ifdef __KERNEL__
2020

21+
#include <linux/errno.h>
22+
#include <linux/types.h>
2123
#include <asm/esr.h>
2224
#include <asm/insn.h>
25+
#include <asm/ptrace.h>
2326

2427
/* Low-level stepping controls. */
2528
#define DBG_MDSCR_SS (1 << 0)

arch/arm64/include/asm/esr.h

+2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
#ifndef __ASM_ESR_H
1919
#define __ASM_ESR_H
2020

21+
#include <asm/memory.h>
22+
2123
#define ESR_ELx_EC_UNKNOWN (0x00)
2224
#define ESR_ELx_EC_WFx (0x01)
2325
/* Unallocated EC: 0x02 */

0 commit comments

Comments
 (0)