1
0
Fork 0
alistair23-linux/drivers/perf
Arnd Bergmann 984e9cf1b9 drivers/bus: arm-cci: fix build warnings
When the arm-cci driver is enabled, but both CONFIG_ARM_CCI5xx_PMU and
CONFIG_ARM_CCI400_PMU are not, we get a warning about how parts of
the driver are never used:

drivers/perf/arm-cci.c:1454:29: error: 'cci_pmu_models' defined but not used [-Werror=unused-variable]
drivers/perf/arm-cci.c:693:16: error: 'cci_pmu_event_show' defined but not used [-Werror=unused-function]
drivers/perf/arm-cci.c:685:16: error: 'cci_pmu_format_show' defined but not used [-Werror=unused-function]

Marking all three functions as __maybe_unused avoids the warnings in
randconfig builds. I'm doing this lacking any ideas for a better fix.

Fixes: 3de6be7a3d ("drivers/bus: Split Arm CCI driver")
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Will Deacon <will.deacon@arm.com>
2018-05-29 16:38:16 +01:00
..
hisilicon perf: Fix sibling iteration 2018-03-16 20:44:12 +01:00
Kconfig drivers/perf: Remove ARM_SPE_PMU explicit PERF_EVENTS dependency 2018-05-22 17:11:12 +01:00
Makefile drivers/bus: Split Arm CCI driver 2018-03-06 17:26:17 +01:00
arm-cci.c drivers/bus: arm-cci: fix build warnings 2018-05-29 16:38:16 +01:00
arm-ccn.c drivers/perf: arm-ccn: don't log to dmesg in event_init 2018-05-21 18:21:32 +01:00
arm_dsu_pmu.c perf: Fix sibling iteration 2018-03-16 20:44:12 +01:00
arm_pmu.c arm_pmu: simplify arm_pmu::handle_irq 2018-05-21 18:07:05 +01:00
arm_pmu_acpi.c arm_pmu: acpi: request IRQs up-front 2018-02-20 11:34:54 +00:00
arm_pmu_platform.c drivers/perf: arm_pmu_platform: do not warn about affinity on uniprocessor 2018-03-27 13:13:27 +01:00
arm_spe_pmu.c perf: simplify getting .drvdata 2018-05-21 18:02:35 +01:00
qcom_l2_pmu.c perf: Fix sibling iteration 2018-03-16 20:44:12 +01:00
qcom_l3_pmu.c perf: Fix sibling iteration 2018-03-16 20:44:12 +01:00
xgene_pmu.c perf: Fix sibling iteration 2018-03-16 20:44:12 +01:00