aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChen Lifu <[email protected]>2022-08-23 10:18:21 +0800
committerThomas Gleixner <[email protected]>2022-10-17 16:20:48 +0200
commit3548eda8ae284d6d412d59f11cd20fc7df05362b (patch)
tree6dd38b611cc5b13cd9683c77076dc0f1f7b373c8
parent9abf2313adc1ca1b6180c508c25f22f9395cc780 (diff)
x86/tsc: Make art_related_clocksource static
The symbol is not used outside of the file, so mark it static. Fixes the following warning: arch/x86/kernel/tsc.c:53:20: warning: symbol 'art_related_clocksource' was not declared. Should it be static? Signed-off-by: Chen Lifu <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Link: https://lore.kernel.org/r/[email protected]
-rw-r--r--arch/x86/kernel/tsc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/tsc.c b/arch/x86/kernel/tsc.c
index cafacb2e58cc..a78e73da4a74 100644
--- a/arch/x86/kernel/tsc.c
+++ b/arch/x86/kernel/tsc.c
@@ -51,7 +51,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 */