Skip to content

Commit f649f1b

Browse files
geertuglaubitz
authored andcommitted
sh: hw_breakpoint: Add missing forward declaration for arch_bp_generic_fields()
arch/sh/kernel/hw_breakpoint.c:135:5: warning: no previous prototype for ‘arch_bp_generic_fields’ [-Wmissing-prototypes] Signed-off-by: Geert Uytterhoeven <[email protected]> Reviewed-by: John Paul Adrian Glaubitz <[email protected]> Link: https://lore.kernel.org/r/566af354bf51ddc38e9eb95eac51ec00c4e42024.1709326528.git.geert+renesas@glider.be Signed-off-by: John Paul Adrian Glaubitz <[email protected]>
1 parent 86a2da4 commit f649f1b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arch/sh/include/asm/hw_breakpoint.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ struct pmu;
5252

5353
/* arch/sh/kernel/hw_breakpoint.c */
5454
extern int arch_check_bp_in_kernelspace(struct arch_hw_breakpoint *hw);
55+
extern int arch_bp_generic_fields(int sh_len, int sh_type, int *gen_len,
56+
int *gen_type);
5557
extern int hw_breakpoint_arch_parse(struct perf_event *bp,
5658
const struct perf_event_attr *attr,
5759
struct arch_hw_breakpoint *hw);

0 commit comments

Comments
 (0)