clocksource/drivers/sp804: Add static for functions such as sp804_clockevents_init()
Add static for sp804_clocksource_and_sched_clock_init() and sp804_clockevents_init(), they are only used in timer-sp804.c now. Otherwise, the following warning will be reported: drivers/clocksource/timer-sp804.c:68:12: warning: no previous prototype \ for 'sp804_clocksource_and_sched_clock_init' [-Wmissing-prototypes] drivers/clocksource/timer-sp804.c:162:12: warning: no previous prototype \ for 'sp804_clockevents_init' [-Wmissing-prototypes] Fixes:975434f8b2
("clocksource/drivers/sp804: Delete the leading "__" of some functions") Fixes:65f4d7ddc7
("clocksource/drivers/sp804: Remove unused sp804_timer_disable() and timer-sp804.h") Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Link: https://lore.kernel.org/r/20201021012259.2067-2-thunder.leizhen@huawei.com
This commit is contained in:
parent
b996544916
commit
3c0a4b185f
@ -117,7 +117,7 @@ static u64 notrace sp804_read(void)
|
|||||||
return ~readl_relaxed(sched_clkevt->value);
|
return ~readl_relaxed(sched_clkevt->value);
|
||||||
}
|
}
|
||||||
|
|
||||||
int __init sp804_clocksource_and_sched_clock_init(void __iomem *base,
|
static int __init sp804_clocksource_and_sched_clock_init(void __iomem *base,
|
||||||
const char *name,
|
const char *name,
|
||||||
struct clk *clk,
|
struct clk *clk,
|
||||||
int use_sched_clock)
|
int use_sched_clock)
|
||||||
@ -216,7 +216,7 @@ static struct clock_event_device sp804_clockevent = {
|
|||||||
.rating = 300,
|
.rating = 300,
|
||||||
};
|
};
|
||||||
|
|
||||||
int __init sp804_clockevents_init(void __iomem *base, unsigned int irq,
|
static int __init sp804_clockevents_init(void __iomem *base, unsigned int irq,
|
||||||
struct clk *clk, const char *name)
|
struct clk *clk, const char *name)
|
||||||
{
|
{
|
||||||
struct clock_event_device *evt = &sp804_clockevent;
|
struct clock_event_device *evt = &sp804_clockevent;
|
||||||
|
Loading…
Reference in New Issue
Block a user