move and deduplicate declarations of __vdsosym to make it checkable
authorRich Felker <dalias@aerifal.cx>
Thu, 6 Sep 2018 17:45:31 +0000 (13:45 -0400)
committerRich Felker <dalias@aerifal.cx>
Wed, 12 Sep 2018 18:34:27 +0000 (14:34 -0400)
src/internal/syscall.h
src/sched/sched_getcpu.c
src/time/clock_gettime.c

index 5737f3a25f014559f4cb01d184dd7b823f9d5066..730f285a2a44c55cc8ea3698bc1adff10a9072f1 100644 (file)
@@ -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
index e08cfdf13921b43c8a157b31646a6a8f47c5f1f7..4ec5eaf67961c48de9ed0ccbb223d44363b0b55e 100644 (file)
@@ -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 *);
index 241288042d64c36ce13f4506a5d0f5a8695a7ac1..c24fe1735328c122ec428dd1d820aa981c442edb 100644 (file)
@@ -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)