linux-mips
[Top] [All Lists]

[PATCH] MIPS: perf: remove unused counters_per_cpu_to_total function

To: ralf@linux-mips.org
Subject: [PATCH] MIPS: perf: remove unused counters_per_cpu_to_total function
From: Florian Fainelli <florian@openwrt.org>
Date: Fri, 10 Feb 2012 14:42:53 +0100
Cc: linux-mips@linux-mips.org, david.daney@cavium.com, Florian Fainelli <florian@openwrt.org>
Sender: linux-mips-bounce@linux-mips.org
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[2]: *** [arch/mips/kernel/perf_event_mipsxx.o] Error 1
make[2]: *** 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 <florian@openwrt.org>
---
 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 
b/arch/mips/kernel/perf_event_mipsxx.c
index e3b897a..25e8fae 100644
--- a/arch/mips/kernel/perf_event_mipsxx.c
+++ b/arch/mips/kernel/perf_event_mipsxx.c
@@ -162,11 +162,6 @@ static unsigned int counters_total_to_per_cpu(unsigned int 
counters)
        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
 
-- 
1.7.5.4


<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH] MIPS: perf: remove unused counters_per_cpu_to_total function, Florian Fainelli <=