Skip to content

Commit

Permalink
clocksource/drivers/arm_global_timer: Make symbol 'gt_clk_rate_change…
Browse files Browse the repository at this point in the history
…_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
  • Loading branch information
Zou Wei authored and Daniel Lezcano committed Jun 16, 2021
1 parent 68e2215 commit be534f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/clocksource/arm_global_timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit be534f8

Please sign in to comment.