diff options
author | Vincenzo Frascino <[email protected]> | 2019-11-28 11:17:19 +0000 |
---|---|---|
committer | Thomas Gleixner <[email protected]> | 2020-01-10 19:29:01 +0100 |
commit | ffd08731b2d632459428612431060cf902324a8d (patch) | |
tree | dcba0eca80dc01e77be7fc413c2fd116951a9eda | |
parent | f35deaff1b8eadb9897e4fb8b3edc7717f4ec6fa (diff) |
lib/vdso: Make __cvdso_clock_getres() static
Fix the following sparse warning in the generic vDSO library:
linux/lib/vdso/gettimeofday.c:224:5: warning: symbol
'__cvdso_clock_getres' was not declared. Should it be static?
Make it static and also mark it __maybe_unsed.
Fixes: 502a590a170b ("lib/vdso: Move fallback invocation to the callers")
Reported-by: Marc Gonzalez <[email protected]>
Signed-off-by: Vincenzo Frascino <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
-rw-r--r-- | lib/vdso/gettimeofday.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); |