diff options
author | Peter Zijlstra <a.p.zijlstra@chello.nl> | 2010-08-20 14:30:41 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2010-08-20 14:59:39 +0200 |
commit | ed8052616680e72f58bca678d4d1678cb12a7e47 (patch) | |
tree | e0898bc1bb3eafcd83006457829511f6eb0f3dc2 /arch/x86/kernel/cpu/perf_event.c | |
parent | 4c1c952e37c7511a52f617ceddbc10c855d45d7b (diff) | |
download | linux-ed8052616680e72f58bca678d4d1678cb12a7e47.tar.gz linux-ed8052616680e72f58bca678d4d1678cb12a7e47.tar.bz2 linux-ed8052616680e72f58bca678d4d1678cb12a7e47.zip |
perf: Remove superfluous return values from perf_callchain_*()
Fixes these build warnings introduced by the callchain
rework:
arch/x86/kernel/cpu/perf_event.c: In function ‘perf_callchain_kernel’:
arch/x86/kernel/cpu/perf_event.c:1646: warning: ‘return’ with a value, in function returning void
arch/x86/kernel/cpu/perf_event.c: In function ‘perf_callchain_user’:
arch/x86/kernel/cpu/perf_event.c:1699: warning: ‘return’ with a value, in function returning void
arch/x86/kernel/cpu/perf_event.c: At top level:
arch/x86/kernel/cpu/perf_event.c:1607: warning: ‘perf_callchain_entry_nmi’ defined but not used
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Acked-by: Frederic Weisbecker <fweisbec@gmail.com>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/cpu/perf_event.c')
-rw-r--r-- | arch/x86/kernel/cpu/perf_event.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/cpu/perf_event.c b/arch/x86/kernel/cpu/perf_event.c index 8e91cf34a9c8..acc52afaf7bf 100644 --- a/arch/x86/kernel/cpu/perf_event.c +++ b/arch/x86/kernel/cpu/perf_event.c @@ -1610,7 +1610,7 @@ perf_callchain_kernel(struct perf_callchain_entry *entry, struct pt_regs *regs) { if (perf_guest_cbs && perf_guest_cbs->is_in_guest()) { /* TODO: We don't support guest os callchain now */ - return NULL; + return; } perf_callchain_store(entry, regs->ip); @@ -1663,7 +1663,7 @@ perf_callchain_user(struct perf_callchain_entry *entry, struct pt_regs *regs) if (perf_guest_cbs && perf_guest_cbs->is_in_guest()) { /* TODO: We don't support guest os callchain now */ - return NULL; + return; } fp = (void __user *)regs->bp; |