Skip to contentSkip to conversation

x86/tsc: make art_related_clocksource static

PATCH New Jason Yan 1 participant 1 message Apr 9, 2020 x86

lore
Share & tools
lore

Jason Yan

author
#0 lore raw

PATCH 1/1 x86/tsc: make art_related_clocksource static

Fix the following sparse warning:

arch/x86/kernel/tsc.c:52:20: warning: symbol 'art_related_clocksource' was not declared. Should it be static?

---
 arch/x86/kernel/tsc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kernel/tsc.c +1 -1
index fdd4c1078632..6550239a7fca 100644
@@ -49,7 +49,7 @@ int tsc_clocksource_reliable;
 static u32 art_to_tsc_numerator;
 static u32 art_to_tsc_denominator;
 static u64 art_to_tsc_offset;
-struct clocksource *art_related_clocksource;
+static struct clocksource *art_related_clocksource;
 
 struct cyc2ns {
 	struct cyc2ns_data data[2];	/*  0 + 2*16 = 32 */
Signature · 1 line
2.17.2