summaryrefslogtreecommitdiffstats
path: root/.cocciconfig
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2018-05-28 17:41:47 +0200
committerWill Deacon <will.deacon@arm.com>2018-05-29 16:38:16 +0100
commit984e9cf1b9eaab08e4f1f082ce49ed2670e99d90 (patch)
tree5ee3cf9d2e049b06af6670e9a66b791a7256dbdd /.cocciconfig
parentb89205bd508ed384253b4449c6a7a755b956a0f8 (diff)
downloadlinux-984e9cf1b9eaab08e4f1f082ce49ed2670e99d90.tar.bz2
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: 3de6be7a3dd8 ("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>
Diffstat (limited to '.cocciconfig')
0 files changed, 0 insertions, 0 deletions