Skip to content

Commit bd0f3aa

Browse files
Tom Rixdlezcano
Tom Rix
authored andcommitted
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
1 parent e7d65e4 commit bd0f3aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/clocksource/timer-loongson1-pwm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
#define CNTR_WIDTH 24
3030

31-
DEFINE_RAW_SPINLOCK(ls1x_timer_lock);
31+
static DEFINE_RAW_SPINLOCK(ls1x_timer_lock);
3232

3333
struct ls1x_clocksource {
3434
void __iomem *reg_base;

0 commit comments

Comments
 (0)