diff options
author | Tom Rix <[email protected]> | 2023-07-02 09:31:13 -0400 |
---|---|---|
committer | Daniel Lezcano <[email protected]> | 2023-08-18 12:13:03 +0200 |
commit | bd0f3aac47e8f618ceae0120d7b989378a7c45f0 (patch) | |
tree | bf22c33db923ebdd601ff93fa3228b9c8bca78dd | |
parent | e7d65e40ab5a5940785c5922f317602d0268caaf (diff) |
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]
-rw-r--r-- | drivers/clocksource/timer-loongson1-pwm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clocksource/timer-loongson1-pwm.c b/drivers/clocksource/timer-loongson1-pwm.c index 6335fee03017..244d66835508 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; |