Skip to content

Commit bd0f3aa

Browse files
Tom Rixdlezcano
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 <[email protected]> Acked-by: Keguang Zhang <[email protected]> Signed-off-by: Daniel Lezcano <[email protected]> Link: https://lore.kernel.org/r/[email protected]
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)