lkml.org 
[lkml]   [2009]   [Nov]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] hw-breakpoints: Fix unused function in off-case
Date
bp_perf_event_destroy() is unused in its off-case version, let's remove
it to fix the following warning:

kernel/perf_event.c:4306: warning: 'bp_perf_event_destroy' defined but not used

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Peter Zijlstra <peterz@infradead.org>
---
kernel/perf_event.c | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
diff --git a/kernel/perf_event.c b/kernel/perf_event.c
index 35df94e..b119e4e 100644
--- a/kernel/perf_event.c
+++ b/kernel/perf_event.c
@@ -4303,10 +4303,6 @@ void perf_bp_event(struct perf_event *bp, void *data)
perf_swevent_add(bp, 1, 1, &sample, regs);
}
#else
-static void bp_perf_event_destroy(struct perf_event *event)
-{
-}
-
static const struct pmu *bp_perf_event_init(struct perf_event *bp)
{
return NULL;
--
1.6.2.3


\
 
 \ /
  Last update: 2009-11-25 21:23    [from the cache]
©2003-2011 Jasper Spaans