diff options
author | Randy Dunlap <rdunlap@infradead.org> | 2023-09-20 08:21:34 +0300 |
---|---|---|
committer | Max Filippov <jcmvbkbc@gmail.com> | 2023-09-20 15:03:21 +0300 |
commit | 2e413b1ebc30937882ed894897bee226896f262e (patch) | |
tree | 5843683c232620e142c09abebf91cbd5631e916b /arch/xtensa/kernel/hw_breakpoint.c | |
parent | 0f95df6246fe9d870cb9753c9376d72af84211a0 (diff) | |
download | linux-2e413b1ebc30937882ed894897bee226896f262e.tar.xz |
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 <rdunlap@infradead.org>
Cc: Chris Zankel <chris@zankel.net>
Cc: Max Filippov <jcmvbkbc@gmail.com>
Message-Id: <20230920052139.10570-12-rdunlap@infradead.org>
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'arch/xtensa/kernel/hw_breakpoint.c')
-rw-r--r-- | arch/xtensa/kernel/hw_breakpoint.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/xtensa/kernel/hw_breakpoint.c b/arch/xtensa/kernel/hw_breakpoint.c index 285fb2942b06..1eeecd58eb0c 100644 --- a/arch/xtensa/kernel/hw_breakpoint.c +++ b/arch/xtensa/kernel/hw_breakpoint.c @@ -13,6 +13,7 @@ #include <linux/percpu.h> #include <linux/perf_event.h> #include <asm/core.h> +#include <asm/hw_breakpoint.h> /* Breakpoint currently in use for each IBREAKA. */ static DEFINE_PER_CPU(struct perf_event *, bp_on_reg[XCHAL_NUM_IBREAK]); |