Skip to content

Commit ffd0873

Browse files
fvincenzoKAGA-KOKO
authored andcommitted
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: 502a590 ("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]
1 parent f35deaf commit ffd0873

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/vdso/gettimeofday.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@ int __cvdso_clock_getres_common(clockid_t clock, struct __kernel_timespec *res)
221221
return 0;
222222
}
223223

224+
static __maybe_unused
224225
int __cvdso_clock_getres(clockid_t clock, struct __kernel_timespec *res)
225226
{
226227
int ret = __cvdso_clock_getres_common(clock, res);

0 commit comments

Comments
 (0)