Commit 3c07bf0f authored by Kefeng Wang's avatar Kefeng Wang Committed by Daniel Lezcano
Browse files

clocksource/drivers/sp804: Make some symbol static



drivers/clocksource/timer-sp804.c:38:31: warning: symbol 'arm_sp804_timer' was not declared. Should it be static?
drivers/clocksource/timer-sp804.c:47:31: warning: symbol 'hisi_sp804_timer' was not declared. Should it be static?
drivers/clocksource/timer-sp804.c:120:12: warning: symbol 'sp804_clocksource_and_sched_clock_init' was not declared. Should it be static?
drivers/clocksource/timer-sp804.c:219:12: warning: symbol 'sp804_clockevents_init' was not declared. Should it be static?

And move __initdata after the variables.

Signed-off-by: default avatarKefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20201029123317.90286-2-wangkefeng.wang@huawei.com
parent 3c0a4b18
Loading
Loading
Loading
Loading
+2 −3
Original line number Original line Diff line number Diff line
@@ -34,8 +34,7 @@
#define HISI_TIMER_BGLOAD	0x20
#define HISI_TIMER_BGLOAD	0x20
#define HISI_TIMER_BGLOAD_H	0x24
#define HISI_TIMER_BGLOAD_H	0x24



static struct sp804_timer arm_sp804_timer __initdata = {
struct sp804_timer __initdata arm_sp804_timer = {
	.load		= TIMER_LOAD,
	.load		= TIMER_LOAD,
	.value		= TIMER_VALUE,
	.value		= TIMER_VALUE,
	.ctrl		= TIMER_CTRL,
	.ctrl		= TIMER_CTRL,
@@ -44,7 +43,7 @@ struct sp804_timer __initdata arm_sp804_timer = {
	.width		= 32,
	.width		= 32,
};
};


struct sp804_timer __initdata hisi_sp804_timer = {
static struct sp804_timer hisi_sp804_timer __initdata = {
	.load		= HISI_TIMER_LOAD,
	.load		= HISI_TIMER_LOAD,
	.load_h		= HISI_TIMER_LOAD_H,
	.load_h		= HISI_TIMER_LOAD_H,
	.value		= HISI_TIMER_VALUE,
	.value		= HISI_TIMER_VALUE,