* [PATCH -next] x86/tsc: Make art_related_clocksource static
@ 2022-08-23 2:18 Chen Lifu
2022-10-08 8:47 ` chenlifu
2022-10-17 14:31 ` [tip: x86/cleanups] " tip-bot2 for Chen Lifu
0 siblings, 2 replies; 3+ messages in thread
From: Chen Lifu @ 2022-08-23 2:18 UTC (permalink / raw)
To: tglx, mingo, bp, dave.hansen, x86, hpa, feng.tang, gregkh,
peterz, linux-kernel
Cc: chenlifu
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>
---
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 cafacb2e58cc..a78e73da4a74 100644
--- a/arch/x86/kernel/tsc.c
+++ b/arch/x86/kernel/tsc.c
@@ -49,11 +49,11 @@ static DEFINE_STATIC_KEY_FALSE(__use_tsc);
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 */
seqcount_latch_t seq; /* 32 + 4 = 36 */
--
2.37.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH -next] x86/tsc: Make art_related_clocksource static
2022-08-23 2:18 [PATCH -next] x86/tsc: Make art_related_clocksource static Chen Lifu
@ 2022-10-08 8:47 ` chenlifu
2022-10-17 14:31 ` [tip: x86/cleanups] " tip-bot2 for Chen Lifu
1 sibling, 0 replies; 3+ messages in thread
From: chenlifu @ 2022-10-08 8:47 UTC (permalink / raw)
To: tglx, mingo, bp, dave.hansen, x86, hpa, feng.tang, gregkh,
peterz, linux-kernel
在 2022/8/23 10:18, Chen Lifu 写道:
> 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>
> ---
> 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 cafacb2e58cc..a78e73da4a74 100644
> --- a/arch/x86/kernel/tsc.c
> +++ b/arch/x86/kernel/tsc.c
> @@ -49,11 +49,11 @@ static DEFINE_STATIC_KEY_FALSE(__use_tsc);
> 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 */
> seqcount_latch_t seq; /* 32 + 4 = 36 */
>
friendly ping ...
^ permalink raw reply [flat|nested] 3+ messages in thread
* [tip: x86/cleanups] x86/tsc: Make art_related_clocksource static
2022-08-23 2:18 [PATCH -next] x86/tsc: Make art_related_clocksource static Chen Lifu
2022-10-08 8:47 ` chenlifu
@ 2022-10-17 14:31 ` tip-bot2 for Chen Lifu
1 sibling, 0 replies; 3+ messages in thread
From: tip-bot2 for Chen Lifu @ 2022-10-17 14:31 UTC (permalink / raw)
To: linux-tip-commits; +Cc: Chen Lifu, Thomas Gleixner, x86, linux-kernel
The following commit has been merged into the x86/cleanups branch of tip:
Commit-ID: 3548eda8ae284d6d412d59f11cd20fc7df05362b
Gitweb: https://git.kernel.org/tip/3548eda8ae284d6d412d59f11cd20fc7df05362b
Author: Chen Lifu <chenlifu@huawei.com>
AuthorDate: Tue, 23 Aug 2022 10:18:21 +08:00
Committer: Thomas Gleixner <tglx@linutronix.de>
CommitterDate: Mon, 17 Oct 2022 16:20:48 +02:00
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
---
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 cafacb2..a78e73d 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 */
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-10-17 14:31 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-23 2:18 [PATCH -next] x86/tsc: Make art_related_clocksource static Chen Lifu
2022-10-08 8:47 ` chenlifu
2022-10-17 14:31 ` [tip: x86/cleanups] " tip-bot2 for Chen Lifu
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).