]> git.baikalelectronics.ru Git - kernel.git/commit
clocksource/drivers/timer-ti-dm: Remove omap_dm_timer_set_load_start
authorNathan Chancellor <natechancellor@gmail.com>
Wed, 27 Mar 2019 05:01:27 +0000 (22:01 -0700)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Tue, 16 Apr 2019 12:26:54 +0000 (14:26 +0200)
commitbf889ea7839c570b5752ad2927bb2af95a15d095
tree79f6972398ca649c4c79689d79c32aeea46fa352
parent0fb94c1d3ee27054429e1b2a75dedb15cbd88f3a
clocksource/drivers/timer-ti-dm: Remove omap_dm_timer_set_load_start

Commit 4537dc18f5ac ("clocksource/drivers/timer-ti-dm: Make
omap_dm_timer_set_load_start() static") made omap_dm_time_set_load_start
static because its prototype was not defined in a header. Unfortunately,
this causes a build warning on multi_v7_defconfig because this function
is not used anywhere in this translation unit:

drivers/clocksource/timer-ti-dm.c:589:12: error: unused function
'omap_dm_timer_set_load_start' [-Werror,-Wunused-function]

In fact, omap_dm_timer_set_load_start hasn't been used anywhere since
commit 801b0c1c4e74 ("staging: tidspbridge: remove driver") and the
prototype was removed in commit c7cba3feea2a ("clocksource: timer-ti-dm:
Make unexported functions static"), which is probably where this should
have happened.

Fixes: c7cba3feea2a ("clocksource: timer-ti-dm: Make unexported functions static")
Fixes: 4537dc18f5ac ("clocksource/drivers/timer-ti-dm: Make omap_dm_timer_set_load_start() static")
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/clocksource/timer-ti-dm.c