libthr: fix warnings at WARNS=6

Fix more warnings about redundant declarations.

Reviewed by:	kib emaste
MFC after:	3 days
Sponsored by:	Dell EMC
Differential Revision:	https://reviews.freebsd.org/D10932
This commit is contained in:
Eric van Gyzen 2017-05-26 15:56:28 +00:00
parent 7fb37371e8
commit 718fb5ba5b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=318955
6 changed files with 3 additions and 11 deletions

View File

@ -72,8 +72,6 @@ _tcb_get(void)
return (tcb);
}
extern struct pthread *_thr_initial;
static __inline struct pthread *
_get_curthread(void)
{

View File

@ -75,8 +75,6 @@ _tcb_get(void)
#endif
}
extern struct pthread *_thr_initial;
static __inline struct pthread *
_get_curthread(void)
{

View File

@ -120,8 +120,6 @@ _tcb_get(void)
# endif /* ! __mips_n64 */
#endif /* ! TLS_USE_SYSARCH */
extern struct pthread *_thr_initial;
static __inline struct pthread *
_get_curthread(void)
{

View File

@ -80,8 +80,6 @@ _tcb_get(void)
return ((struct tcb *)(_tp - TP_OFFSET));
}
extern struct pthread *_thr_initial;
static __inline struct pthread *
_get_curthread(void)
{

View File

@ -78,8 +78,6 @@ _tcb_get(void)
return ((struct tcb *)(_tp - TP_OFFSET));
}
extern struct pthread *_thr_initial;
static __inline struct pthread *
_get_curthread(void)
{

View File

@ -69,6 +69,9 @@ __NULLABILITY_PRAGMA_PUSH
WEAK_REF(func, SYM_FBP10(sym)); \
SYM_DEFAULT(sym, SYM_FBP10(sym), FBSDprivate_1.0)
struct pthread;
extern struct pthread *_thr_initial __hidden;
#include "pthread_md.h"
#include "thr_umtx.h"
#include "thread_db.h"
@ -711,7 +714,6 @@ extern int __isthreaded;
*/
extern char *_usrstack __hidden;
extern struct pthread *_thr_initial __hidden;
/* For debugger */
extern int _libthr_debug;