From cb229f614f937515b78e40701f36c26c7def01b7 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Thu, 6 Sep 2018 13:45:31 -0400 Subject: [PATCH] move and deduplicate declarations of __vdsosym to make it checkable --- src/internal/syscall.h | 2 ++ src/sched/sched_getcpu.c | 2 -- src/time/clock_gettime.c | 2 -- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/internal/syscall.h b/src/internal/syscall.h index 5737f3a2..730f285a 100644 --- a/src/internal/syscall.h +++ b/src/internal/syscall.h @@ -246,4 +246,6 @@ hidden long __syscall_ret(unsigned long), __syscall(syscall_arg_t, ...), void __procfdname(char [static 15+3*sizeof(int)], unsigned); +void *__vdsosym(const char *, const char *); + #endif diff --git a/src/sched/sched_getcpu.c b/src/sched/sched_getcpu.c index e08cfdf1..4ec5eaf6 100644 --- a/src/sched/sched_getcpu.c +++ b/src/sched/sched_getcpu.c @@ -6,8 +6,6 @@ #ifdef VDSO_GETCPU_SYM -void *__vdsosym(const char *, const char *); - static void *volatile vdso_func; typedef long (*getcpu_f)(unsigned *, unsigned *, void *); diff --git a/src/time/clock_gettime.c b/src/time/clock_gettime.c index 24128804..c24fe173 100644 --- a/src/time/clock_gettime.c +++ b/src/time/clock_gettime.c @@ -7,8 +7,6 @@ #ifdef VDSO_CGT_SYM -void *__vdsosym(const char *, const char *); - static void *volatile vdso_func; static int cgt_init(clockid_t clk, struct timespec *ts) -- 2.25.1