Skip to content

Commit 2e413b1

Browse files
rddunlapjcmvbkbc
authored andcommitted
xtensa: hw_breakpoint: include header for missing prototype
Add the prototype for restore_dbreak() to <asm/hw_breakpoint.h> and use that header in hw_breakpoint.c to prevent a build warning: arch/xtensa/kernel/hw_breakpoint.c:263:6: warning: no previous prototype for 'restore_dbreak' [-Wmissing-prototypes] 263 | void restore_dbreak(void) Signed-off-by: Randy Dunlap <[email protected]> Cc: Chris Zankel <[email protected]> Cc: Max Filippov <[email protected]> Message-Id: <[email protected]> Signed-off-by: Max Filippov <[email protected]>
1 parent 0f95df6 commit 2e413b1

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

arch/xtensa/include/asm/hw_breakpoint.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ void arch_uninstall_hw_breakpoint(struct perf_event *bp);
4848
void hw_breakpoint_pmu_read(struct perf_event *bp);
4949
int check_hw_breakpoint(struct pt_regs *regs);
5050
void clear_ptrace_hw_breakpoint(struct task_struct *tsk);
51+
void restore_dbreak(void);
5152

5253
#else
5354

arch/xtensa/kernel/hw_breakpoint.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#include <linux/percpu.h>
1414
#include <linux/perf_event.h>
1515
#include <asm/core.h>
16+
#include <asm/hw_breakpoint.h>
1617

1718
/* Breakpoint currently in use for each IBREAKA. */
1819
static DEFINE_PER_CPU(struct perf_event *, bp_on_reg[XCHAL_NUM_IBREAK]);

0 commit comments

Comments
 (0)