This function is currently unused and causes a build error:
cc1: warnings being treated as errors
arch/mips/kernel/perf_event_mipsxx.c:166: error: 'counters_per_cpu_to_total'
defined but not used
make: *** [arch/mips/kernel/perf_event_mipsxx.o] Error 1
make: *** Waiting for unfinished jobs....
It was first introduced in commit:
82091564: MIPS: perf: Add support for 64-bit perf counters.
and is applicable to 3.2 onwards.
Signed-off-by: Florian Fainelli <email@example.com>
arch/mips/kernel/perf_event_mipsxx.c | 5 -----
1 files changed, 0 insertions(+), 5 deletions(-)
diff --git a/arch/mips/kernel/perf_event_mipsxx.c
index e3b897a..25e8fae 100644
@@ -162,11 +162,6 @@ static unsigned int counters_total_to_per_cpu(unsigned int
return counters >> vpe_shift();
-static unsigned int counters_per_cpu_to_total(unsigned int counters)
- return counters << vpe_shift();
#else /* !CONFIG_MIPS_MT_SMP */
#define vpe_id() 0