hw-breakpoints: Fix unused function in off-case
authorFrederic Weisbecker <fweisbec@gmail.com>
Wed, 25 Nov 2009 20:20:53 +0000 (21:20 +0100)
committerIngo Molnar <mingo@elte.hu>
Thu, 26 Nov 2009 09:40:51 +0000 (10:40 +0100)
bp_perf_event_destroy() is unused in its off-case version, let's
remove it to fix the following warning reported by Stephen
Rothwell in linux-next:

  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>
LKML-Reference: <1259180453-5813-1-git-send-email-fweisbec@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/perf_event.c

index 34a1b9d7633e83aee544335f09185c3658db1564..f8c7939c57cf1159e6ebf4819b43439341ab9f9b 100644 (file)
@@ -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;