clocksource/drivers/loongson1: Set variable ls1x_timer_lock storage-class-specifier...
authorTom Rix <trix@redhat.com>
Sun, 2 Jul 2023 13:31:13 +0000 (09:31 -0400)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Fri, 18 Aug 2023 10:13:03 +0000 (12:13 +0200)
commitbd0f3aac47e8f618ceae0120d7b989378a7c45f0
treebf22c33db923ebdd601ff93fa3228b9c8bca78dd
parente7d65e40ab5a5940785c5922f317602d0268caaf
clocksource/drivers/loongson1: Set variable ls1x_timer_lock storage-class-specifier to static

smatch reports
drivers/clocksource/timer-loongson1-pwm.c:31:1: warning: symbol
  'ls1x_timer_lock' was not declared. Should it be static?

This variable is only used in its defining file, so it should be static.

Signed-off-by: Tom Rix <trix@redhat.com>
Acked-by: Keguang Zhang <keguang.zhang@gmail.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20230702133113.3438049-1-trix@redhat.com
drivers/clocksource/timer-loongson1-pwm.c