]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
clocksource/drivers/timer-rtl-otto: Make rttm_cs variable static
authorKrzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Mon, 16 Feb 2026 11:03:07 +0000 (12:03 +0100)
committerDaniel Lezcano <daniel.lezcano@kernel.org>
Tue, 24 Mar 2026 17:30:29 +0000 (18:30 +0100)
File-scope 'rttm_cs' is not used outside of this unit, so make it static
to silence sparse warning:

  timer-rtl-otto.c:228:16: warning: symbol 'rttm_cs' was not declared. Should it be static?

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@kernel.org>
Link: https://patch.msgid.link/20260216110306.159822-2-krzysztof.kozlowski@oss.qualcomm.com
drivers/clocksource/timer-rtl-otto.c

index 6113d2fdd4de196b317f5ae45f5324e46d1dada9..dd236a7babee88440ea1fa32b19d549b312373ad 100644 (file)
@@ -225,7 +225,7 @@ static int rttm_enable_clocksource(struct clocksource *cs)
        return 0;
 }
 
-struct rttm_cs rttm_cs = {
+static struct rttm_cs rttm_cs = {
        .to = {
                .flags  = TIMER_OF_BASE | TIMER_OF_CLOCK,
        },