Linux-MIPS Archive on
 help / color / Atom feed
* [PATCH] lib: vdso: Fix sparse warning
@ 2019-11-28 11:17 Vincenzo Frascino
  0 siblings, 0 replies; only message in thread
From: Vincenzo Frascino @ 2019-11-28 11:17 UTC (permalink / raw)
  To: tglx, luto, marc.w.gonzalez
  Cc: linux-arch, linux-arm-kernel, linux-kernel, linux-mips

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?

Cc: Thomas Gleixner <>
Cc: Andrew Lutomirski <>
Reported-by: Marc Gonzalez <>
Signed-off-by: Vincenzo Frascino <>
 lib/vdso/gettimeofday.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/vdso/gettimeofday.c b/lib/vdso/gettimeofday.c
index 45f57fd2db64..1d47b34a8ad9 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);

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, back to index

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-28 11:17 [PATCH] lib: vdso: Fix sparse warning Vincenzo Frascino

Linux-MIPS Archive on

Archives are clonable:
	git clone --mirror linux-mips/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-mips linux-mips/ \
	public-inbox-index linux-mips

Example config snippet for mirrors

Newsgroup available over NNTP:

AGPL code for this site: git clone