[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1285583997-1262-6-git-send-email-namhyung@gmail.com>
Date: Mon, 27 Sep 2010 19:39:57 +0900
From: Namhyung Kim <namhyung@...il.com>
To: Peter Zijlstra <a.p.zijlstra@...llo.nl>,
Paul Mackerras <paulus@...ba.org>, Ingo Molnar <mingo@...e.hu>,
Arnaldo Carvalho de Melo <acme@...hat.com>
Cc: linux-kernel@...r.kernel.org
Subject: [PATCH 5/5] perf: Declare hw_perf_{dis,en}able() in perf_event.h
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@...il.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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists