[PATCH 42/58] kernel/events/hw_breakpoint.c: Add prototype for __weak stub of arch_unregister_hw_breakpoint
From: Josh Triplett
Date: Mon Nov 19 2012 - 00:31:44 EST
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 <josh@xxxxxxxxxxxxxxxx>
---
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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/