Skip to content

Commit 3548eda

Browse files
Chen LifuKAGA-KOKO
authored andcommitted
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 <chenlifu@huawei.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Link: https://lore.kernel.org/r/20220823021821.3052159-1-chenlifu@huawei.com
1 parent 9abf231 commit 3548eda

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arch/x86/kernel/tsc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ int tsc_clocksource_reliable;
5151
static u32 art_to_tsc_numerator;
5252
static u32 art_to_tsc_denominator;
5353
static u64 art_to_tsc_offset;
54-
struct clocksource *art_related_clocksource;
54+
static struct clocksource *art_related_clocksource;
5555

5656
struct cyc2ns {
5757
struct cyc2ns_data data[2]; /* 0 + 2*16 = 32 */

0 commit comments

Comments
 (0)