[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <157868119905.30329.14304133573747134138.tip-bot2@tip-bot2>
Date: Fri, 10 Jan 2020 18:33:19 -0000
From: "tip-bot2 for Vincenzo Frascino" <tip-bot2@...utronix.de>
To: linux-tip-commits@...r.kernel.org
Cc: Marc Gonzalez <marc.w.gonzalez@...e.fr>,
Vincenzo Frascino <vincenzo.frascino@....com>,
Thomas Gleixner <tglx@...utronix.de>, x86 <x86@...nel.org>,
LKML <linux-kernel@...r.kernel.org>
Subject: [tip: timers/urgent] lib/vdso: Make __cvdso_clock_getres() static
The following commit has been merged into the timers/urgent branch of tip:
Commit-ID: ffd08731b2d632459428612431060cf902324a8d
Gitweb: https://git.kernel.org/tip/ffd08731b2d632459428612431060cf902324a8d
Author: Vincenzo Frascino <vincenzo.frascino@....com>
AuthorDate: Thu, 28 Nov 2019 11:17:19
Committer: Thomas Gleixner <tglx@...utronix.de>
CommitterDate: Fri, 10 Jan 2020 19:29:01 +01:00
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 <marc.w.gonzalez@...e.fr>
Signed-off-by: Vincenzo Frascino <vincenzo.frascino@....com>
Signed-off-by: Thomas Gleixner <tglx@...utronix.de>
Link: https://lore.kernel.org/r/20191128111719.8282-1-vincenzo.frascino@arm.com
---
lib/vdso/gettimeofday.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/vdso/gettimeofday.c b/lib/vdso/gettimeofday.c
index 9ecfd3b..42bd8ab 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);
Powered by blists - more mailing lists