From: Krzysztof Kozlowski Date: Mon, 16 Feb 2026 11:03:07 +0000 (+0100) Subject: clocksource/drivers/timer-rtl-otto: Make rttm_cs variable static X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=045a9dac7eb74ce07160d7715b6629c83f3d92c0;p=thirdparty%2Fkernel%2Flinux.git clocksource/drivers/timer-rtl-otto: Make rttm_cs variable static 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 Signed-off-by: Daniel Lezcano Link: https://patch.msgid.link/20260216110306.159822-2-krzysztof.kozlowski@oss.qualcomm.com --- diff --git a/drivers/clocksource/timer-rtl-otto.c b/drivers/clocksource/timer-rtl-otto.c index 6113d2fdd4de1..dd236a7babee8 100644 --- a/drivers/clocksource/timer-rtl-otto.c +++ b/drivers/clocksource/timer-rtl-otto.c @@ -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, },