[PATCH 5/5] perf: Declare hw_perf_{dis,en}able() in perf_event.h
From: Namhyung Kim
Date: Mon Sep 27 2010 - 06:41:24 EST
Since they can be defined in arch-specific code declare them in
perf_event.h and remove following warnings from sparse:
kernel/perf_event.c:83:13: warning: symbol 'hw_perf_disable' was not declared. Should it be static?
kernel/perf_event.c:84:13: warning: symbol 'hw_perf_enable' was not declared. Should it be static?
Signed-off-by: Namhyung Kim <namhyung@xxxxxxxxx>
---
include/linux/perf_event.h | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h
index 167dd3d..26859c7 100644
--- a/include/linux/perf_event.h
+++ b/include/linux/perf_event.h
@@ -848,6 +848,8 @@ struct perf_output_handle {
extern int perf_max_events;
extern const struct pmu *hw_perf_event_init(struct perf_event *event);
+extern void hw_perf_disable(void);
+extern void hw_perf_enable(void);
extern void perf_event_task_sched_in(struct task_struct *task);
extern void perf_event_task_sched_out(struct task_struct *task, struct task_struct *next);
--
1.7.2.2
--
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/