kernel/events/hw_breakpoint.c defines an empty stub of arch_unregister_hw_breakpoint with __weak, for use on architectures without an alternate implementation. Define a prototype of that function, to satisfy gcc (-Wmissing-prototypes) and Sparse (-Wdecl).
kernel/events/hw_breakpoint.c:247:28: warning: no previous prototype for ‘arch_unregister_hw_breakpoint’ [-Wmissing-prototypes] Signed-off-by: Josh Triplett <[email protected]> --- kernel/events/hw_breakpoint.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/events/hw_breakpoint.c b/kernel/events/hw_breakpoint.c index 4a3867a..a792001 100644 --- a/kernel/events/hw_breakpoint.c +++ b/kernel/events/hw_breakpoint.c @@ -244,6 +244,7 @@ toggle_bp_slot(struct perf_event *bp, bool enable, enum bp_type_idx type, /* * Function to perform processor-specific cleanup during unregistration */ +void arch_unregister_hw_breakpoint(struct perf_event *bp); __weak void arch_unregister_hw_breakpoint(struct perf_event *bp) { /* -- 1.7.10.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

