perf_counter: powerpc: Fix two compile warnings
authorPaul Mackerras <paulus@samba.org>
Mon, 15 Jun 2009 11:36:52 +0000 (21:36 +1000)
committerIngo Molnar <mingo@elte.hu>
Mon, 15 Jun 2009 14:12:25 +0000 (16:12 +0200)
commit90c8f954534ba15e4542ab00dd9f0e58b071518c
tree592114fc09ed6e1e4b833d3b28534ab6d874153f
parent3dfabc74c65904c9e6cf952391312d16ea772ef5
perf_counter: powerpc: Fix two compile warnings

This fixes a couple of compile warnings that crept into the powerpc
perf_counter code recently:

   CC      arch/powerpc/kernel/perf_counter.o
 arch/powerpc/kernel/perf_counter.c: In function 'record_and_restart':
 arch/powerpc/kernel/perf_counter.c:1016: warning: unused variable 'addr'
 arch/powerpc/kernel/perf_counter.c: In function 'hw_perf_counter_init':
 arch/powerpc/kernel/perf_counter.c:891: warning: 'ev' may be used uninitialized in this function

Stephen Rothwell reported this against linux-next as well.

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <18998.12884.787039.22202@cargo.ozlabs.ibm.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/powerpc/kernel/perf_counter.c