Skip to content

Commit 71e06e1

Browse files
Zhen Leiwilldeacon
authored andcommitted
arm64: vdso: Clear common make C=2 warnings
make C=2 ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- xxx.o When I use the command above to do a 'make C=2' check on any object file, the following warnings are always output: CHECK arch/arm64/kernel/vdso/vgettimeofday.c arch/arm64/kernel/vdso/vgettimeofday.c:9:5: warning: symbol '__kernel_clock_gettime' was not declared. Should it be static? arch/arm64/kernel/vdso/vgettimeofday.c:15:5: warning: symbol '__kernel_gettimeofday' was not declared. Should it be static? arch/arm64/kernel/vdso/vgettimeofday.c:21:5: warning: symbol '__kernel_clock_getres' was not declared. Should it be static? Therefore, the declaration of the three functions is added to eliminate these common warnings to provide a clean output. Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com> Link: https://lore.kernel.org/r/20230713115831.777-1-thunder.leizhen@huawei.com Signed-off-by: Will Deacon <will@kernel.org>
1 parent a8bd38d commit 71e06e1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

arch/arm64/kernel/vdso/vgettimeofday.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
*
77
*/
88

9+
int __kernel_clock_gettime(clockid_t clock, struct __kernel_timespec *ts);
10+
int __kernel_gettimeofday(struct __kernel_old_timeval *tv, struct timezone *tz);
11+
int __kernel_clock_getres(clockid_t clock_id, struct __kernel_timespec *res);
12+
913
int __kernel_clock_gettime(clockid_t clock,
1014
struct __kernel_timespec *ts)
1115
{

0 commit comments

Comments
 (0)