From: Rich Felker Date: Thu, 6 Sep 2018 17:45:31 +0000 (-0400) Subject: move and deduplicate declarations of __vdsosym to make it checkable X-Git-Tag: v1.1.21~159 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=cb229f614f937515b78e40701f36c26c7def01b7;p=oweals%2Fmusl.git move and deduplicate declarations of __vdsosym to make it checkable --- 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)