diff options
author | Zou Wei <zou_wei@huawei.com> | 2021-06-12 11:27:26 +0200 |
---|---|---|
committer | Daniel Lezcano <daniel.lezcano@linaro.org> | 2021-06-16 17:33:04 +0200 |
commit | be534f8ee137b95046d7c53c8200ffdcf05781a7 (patch) | |
tree | e6c77c802cc6f8855d3309cb6921144a0a283589 /drivers/clocksource | |
parent | arm: zynq: don't disable CONFIG_ARM_GLOBAL_TIMER due to CONFIG_CPU_FREQ anymore (diff) | |
download | linux-be534f8ee137b95046d7c53c8200ffdcf05781a7.tar.xz linux-be534f8ee137b95046d7c53c8200ffdcf05781a7.zip |
clocksource/drivers/arm_global_timer: Make symbol 'gt_clk_rate_change_nb' static
The sparse tool complains as follows:
drivers/clocksource/arm_global_timer.c:54:23: warning:
symbol 'gt_clk_rate_change_nb' was not declared. Should it be static?
This symbol is not used outside of arm_global_timer.c, so mark it static.
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zou Wei <zou_wei@huawei.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/1623490046-37972-1-git-send-email-zou_wei@huawei.com
Diffstat (limited to 'drivers/clocksource')
-rw-r--r-- | drivers/clocksource/arm_global_timer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clocksource/arm_global_timer.c b/drivers/clocksource/arm_global_timer.c index 60a8047fd32e..68b1d144a412 100644 --- a/drivers/clocksource/arm_global_timer.c +++ b/drivers/clocksource/arm_global_timer.c @@ -51,7 +51,7 @@ * the units for all operations. */ static void __iomem *gt_base; -struct notifier_block gt_clk_rate_change_nb; +static struct notifier_block gt_clk_rate_change_nb; static u32 gt_psv_new, gt_psv_bck, gt_target_rate; static int gt_ppi; static struct clock_event_device __percpu *gt_evt; |