[PATCH] clocksource: armada-xp: always register local_timer_ops
Jason Cooper
jason at lakedaemon.net
Mon Jun 3 18:11:48 EDT 2013
On Tue, Jun 04, 2013 at 12:03:38AM +0200, Arnd Bergmann wrote:
> The call to local_timer_register is hidden behind an #ifdef, which
> turns the armada_370_xp_local_timer_ops into a potentially unused
> variable, causing this warning:
>
> time-armada-370-xp.c:208:31: warning: 'armada_370_xp_local_timer_ops' defined but not used [-Wunused-variable]
> static struct local_timer_ops armada_370_xp_local_timer_ops __cpuinitdata = {
> ^
>
> Since local_timer_register() itself doesn't do anything, just removing
> the #ifdef makes the code look nicer and gets rid of the warning.
>
> Signed-off-by: Arnd Bergmann <arnd at arndb.de>
> Cc: Gregory CLEMENT <gregory.clement at free-electrons.com>
> Cc: Jason Cooper <jason at lakedaemon.net>
> ---
>
> Please apply for 3.11
Acked-by: Jason Cooper <jason at lakedaemon.net>
thx,
Jason.
More information about the linux-arm-kernel
mailing list