From: Tom Rix Date: Sun, 2 Jul 2023 13:31:13 +0000 (-0400) Subject: clocksource/drivers/loongson1: Set variable ls1x_timer_lock storage-class-specifier... X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=bd0f3aac47e8f618ceae0120d7b989378a7c45f0;p=linux.git 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 Acked-by: Keguang Zhang Signed-off-by: Daniel Lezcano Link: https://lore.kernel.org/r/20230702133113.3438049-1-trix@redhat.com --- diff --git a/drivers/clocksource/timer-loongson1-pwm.c b/drivers/clocksource/timer-loongson1-pwm.c index 6335fee03017b..244d668355084 100644 --- a/drivers/clocksource/timer-loongson1-pwm.c +++ b/drivers/clocksource/timer-loongson1-pwm.c @@ -28,7 +28,7 @@ #define CNTR_WIDTH 24 -DEFINE_RAW_SPINLOCK(ls1x_timer_lock); +static DEFINE_RAW_SPINLOCK(ls1x_timer_lock); struct ls1x_clocksource { void __iomem *reg_base;