freedreno/a6xx: Silence warning for unused perf counters
authorKristian H. Kristensen <hoegsberg@google.com>
Wed, 11 Dec 2019 17:33:56 +0000 (09:33 -0800)
committerKristian H. Kristensen <hoegsberg@gmail.com>
Wed, 11 Dec 2019 22:25:47 +0000 (22:25 +0000)
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Rob Clark <robdclark@chromium.org>
Signed-off-by: Kristian H. Kristensen <hoegsberg@google.com>
src/freedreno/perfcntrs/fd6_perfcntr.c

index 33b7678e56e66a7e264003ea7282b033a21b9a5f..fa5ee1232b4efce7125f13af32c204fa0185204b 100644 (file)
@@ -390,7 +390,7 @@ static const struct fd_perfcntr_countable rb_countables[] = {
        COUNTABLE(PERF_RB_EARLY_Z_SKIP_GRANT, UINT64, AVERAGE),
 };
 
-static const struct fd_perfcntr_counter rbbm_counters[] = {
+UNUSED static const struct fd_perfcntr_counter rbbm_counters[] = {
 //RESERVED: for kernel
 //     COUNTER(RBBM_PERFCTR_RBBM_SEL_0, RBBM_PERFCTR_RBBM_0_LO, RBBM_PERFCTR_RBBM_0_HI),
        COUNTER(RBBM_PERFCTR_RBBM_SEL_1, RBBM_PERFCTR_RBBM_1_LO, RBBM_PERFCTR_RBBM_1_HI),
@@ -398,7 +398,7 @@ static const struct fd_perfcntr_counter rbbm_counters[] = {
        COUNTER(RBBM_PERFCTR_RBBM_SEL_3, RBBM_PERFCTR_RBBM_3_LO, RBBM_PERFCTR_RBBM_3_HI),
 };
 
-static const struct fd_perfcntr_countable rbbm_countables[] = {
+UNUSED static const struct fd_perfcntr_countable rbbm_countables[] = {
        COUNTABLE(PERF_RBBM_ALWAYS_COUNT, UINT64, AVERAGE),
        COUNTABLE(PERF_RBBM_ALWAYS_ON, UINT64, AVERAGE),
        COUNTABLE(PERF_RBBM_TSE_BUSY, UINT64, AVERAGE),