[PATCH] lib: vdso: mark __cvdso_clock_getres() as static

Subsystems: generic vdso library, library code, the rest

STALE2454d

4 messages, 2 authors, 2020-01-13 · open the first message on its own page

[PATCH] lib: vdso: mark __cvdso_clock_getres() as static

From: Christophe Leroy <hidden>
Date: 2020-01-11 17:48:19

When __cvdso_clock_getres() became __cvdso_clock_getres_common()
and a new __cvdso_clock_getres() was added, static qualifier was
forgotten.

Fixes: 502a590a170b ("lib/vdso: Move fallback invocation to the callers")
Signed-off-by: Christophe Leroy <redacted>
---
 lib/vdso/gettimeofday.c | 1 +
 1 file changed, 1 insertion(+)
diff --git a/lib/vdso/gettimeofday.c b/lib/vdso/gettimeofday.c
index 9ecfd3b547ba..42bd8ab955fa 100644
--- a/lib/vdso/gettimeofday.c
+++ b/lib/vdso/gettimeofday.c
@@ -221,6 +221,7 @@ int __cvdso_clock_getres_common(clockid_t clock, struct __kernel_timespec *res)
 	return 0;
 }
 
+static __maybe_unused
 int __cvdso_clock_getres(clockid_t clock, struct __kernel_timespec *res)
 {
 	int ret = __cvdso_clock_getres_common(clock, res);
-- 
2.13.3

Re: [PATCH] lib: vdso: mark __cvdso_clock_getres() as static

From: Thomas Gleixner <hidden>
Date: 2020-01-11 20:00:20

Christophe Leroy [off-list ref] writes:
When __cvdso_clock_getres() became __cvdso_clock_getres_common()
and a new __cvdso_clock_getres() was added, static qualifier was
forgotten.

Fixes: 502a590a170b ("lib/vdso: Move fallback invocation to the callers")
Signed-off-by: Christophe Leroy <redacted>
I've already queued:

     https://lore.kernel.org/r/20191128111719.8282-1-vincenzo.frascino@arm.com

but thanks for caring!

Thanks,

        tglx

Re: [PATCH] lib: vdso: mark __cvdso_clock_getres() as static

From: Christophe Leroy <hidden>
Date: 2020-01-13 12:04:20


Le 11/01/2020 à 20:59, Thomas Gleixner a écrit :
Christophe Leroy [off-list ref] writes:
quoted
When __cvdso_clock_getres() became __cvdso_clock_getres_common()
and a new __cvdso_clock_getres() was added, static qualifier was
forgotten.

Fixes: 502a590a170b ("lib/vdso: Move fallback invocation to the callers")
Signed-off-by: Christophe Leroy <redacted>
I've already queued:

      https://lore.kernel.org/r/20191128111719.8282-1-vincenzo.frascino@arm.com

but thanks for caring!

Is there a git tree with the latest VDSO status ?

https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git?h=timers%2Fvdso is 6 monthes old.

Christophe

Re: [PATCH] lib: vdso: mark __cvdso_clock_getres() as static

From: Thomas Gleixner <hidden>
Date: 2020-01-13 15:08:25

Christophe Leroy [off-list ref] writes:
Is there a git tree with the latest VDSO status ?

https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git?h=timers%2Fvdso 
is 6 monthes old.
Will push a new one later today. I'll let you know.

Thanks,

        tglx
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help