[PATCH 5/5] perf: Declare hw_perf_{dis,en}able() in perf_event.h

Namhyung Kim
2010-09-27T10:41:21Z

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@gmail.com>
---
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