* [PATCH] x86/tsc: make art_related_clocksource static
@ 2020-04-09 11:41 Jason Yan
0 siblings, 0 replies; only message in thread
From: Jason Yan @ 2020-04-09 11:41 UTC (permalink / raw)
To: tglx, mingo, bp, hpa, x86, rafael.j.wysocki, vincenzo.frascino,
jgross, drake, mzhivich, peterz, linux-kernel
Cc: Jason Yan
Fix the following sparse warning:
arch/x86/kernel/tsc.c:52:20: warning: symbol 'art_related_clocksource'
was not declared. Should it be static?
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Jason Yan <yanaijie@huawei.com>
---
arch/x86/kernel/tsc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/x86/kernel/tsc.c b/arch/x86/kernel/tsc.c
index fdd4c1078632..6550239a7fca 100644
--- a/arch/x86/kernel/tsc.c
+++ b/arch/x86/kernel/tsc.c
@@ -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 */
--
2.17.2
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2020-04-09 11:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-09 11:41 [PATCH] x86/tsc: make art_related_clocksource static Jason Yan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).