summaryrefslogtreecommitdiff
path: root/drivers/bus
diff options
context:
space:
mode:
authorWill Deacon <will.deacon@arm.com>2016-02-26 19:12:43 +0300
committerWill Deacon <will.deacon@arm.com>2016-03-01 02:23:17 +0300
commitceb495124417a8aada7c6ee917dff8f1328e8480 (patch)
tree8b72964b46acb9afe1bbde5cf8faf4d9b16a13c4 /drivers/bus
parentd7dd5fd773497d7b63e7a35fcaa270c9f859432b (diff)
downloadlinux-ceb495124417a8aada7c6ee917dff8f1328e8480.tar.xz
arm-cci: make private functions static
cci_pmu_sync_counters and pmu_event_set_period are internal functions to the CCI PMU driver, so make them static to avoid polluting the kernel namespace. Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'drivers/bus')
-rw-r--r--drivers/bus/arm-cci.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/bus/arm-cci.c b/drivers/bus/arm-cci.c
index 494bd39f8434..d951371a74d4 100644
--- a/drivers/bus/arm-cci.c
+++ b/drivers/bus/arm-cci.c
@@ -673,7 +673,7 @@ static int cci550_validate_hw_event(struct cci_pmu *cci_pmu,
* with the event period and mark them ready before we enable
* PMU.
*/
-void cci_pmu_sync_counters(struct cci_pmu *cci_pmu)
+static void cci_pmu_sync_counters(struct cci_pmu *cci_pmu)
{
int i;
struct cci_pmu_hw_events *cci_hw = &cci_pmu->hw_events;
@@ -1038,7 +1038,7 @@ static void pmu_read(struct perf_event *event)
pmu_event_update(event);
}
-void pmu_event_set_period(struct perf_event *event)
+static void pmu_event_set_period(struct perf_event *event)
{
struct hw_perf_event *hwc = &event->hw;
/*