]> git.baikalelectronics.ru Git - kernel.git/commit
clocksource/drivers/sp804: Add static for functions such as sp804_clockevents_init()
authorZhen Lei <thunder.leizhen@huawei.com>
Wed, 21 Oct 2020 01:22:59 +0000 (09:22 +0800)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Thu, 3 Dec 2020 18:16:09 +0000 (19:16 +0100)
commit80f25faaaa8a8076de97505c92a55cf41396f7fa
tree400ac5a32d086e22dd4c3593f988982baeace1af
parentabaac0b4d939a8554cbb7100769d04dee0487503
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: e08ab747c60e ("clocksource/drivers/sp804: Delete the leading "__" of some functions")
Fixes: c9437aaf1e23 ("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
drivers/clocksource/timer-sp804.c