The macro MMCR1_PMCSEL_MSK was introduced in power6-pmu via
commit f78628374a13 ("powerpc/perf_counter: Add support
for POWER6") but never used.

The usage of macro PM_SUBUNIT_MSKS was removed in commit ab7ef2e50a55
("perf_counter: powerpc: allow use of limited-function counters")
and failed to remove its definition.

Removing both the macros as they are not in use.

Co-developed-by: Anjali K <anja...@linux.ibm.com>
Signed-off-by: Anjali K <anja...@linux.ibm.com>
Signed-off-by: Likhitha Korrapati <likhi...@linux.ibm.com>
---
 arch/powerpc/perf/power6-pmu.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/arch/powerpc/perf/power6-pmu.c b/arch/powerpc/perf/power6-pmu.c
index 9f720b522e17..ceb75235a6ef 100644
--- a/arch/powerpc/perf/power6-pmu.c
+++ b/arch/powerpc/perf/power6-pmu.c
@@ -27,7 +27,6 @@
 #define PM_BYTE_MSK    3
 #define PM_SUBUNIT_SH  8       /* Subunit event comes from (NEST_SEL enc.) */
 #define PM_SUBUNIT_MSK 7
-#define PM_SUBUNIT_MSKS        (PM_SUBUNIT_MSK << PM_SUBUNIT_SH)
 #define PM_PMCSEL_MSK  0xff    /* PMCxSEL value */
 #define PM_BUSEVENT_MSK        0xf3700
 
@@ -46,7 +45,6 @@
 #define MMCR1_PMC1_ADDR_SEL    (1ul << 35)
 #define MMCR1_PMC1SEL_SH       24
 #define MMCR1_PMCSEL_SH(n)     (MMCR1_PMC1SEL_SH - (n) * 8)
-#define MMCR1_PMCSEL_MSK       0xff
 
 /*
  * Map of which direct events on which PMCs are marked instruction events.
-- 
2.43.5


Reply via email to