Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 May 2017 15:56:28 +0000 (UTC)
From:      Eric van Gyzen <vangyzen@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r318955 - in head/lib/libthr: arch/aarch64/include arch/arm/include arch/mips/include arch/powerpc/include arch/riscv/include thread
Message-ID:  <201705261556.v4QFuSBF088306@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: vangyzen
Date: Fri May 26 15:56:28 2017
New Revision: 318955
URL: https://svnweb.freebsd.org/changeset/base/318955

Log:
  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

Modified:
  head/lib/libthr/arch/aarch64/include/pthread_md.h
  head/lib/libthr/arch/arm/include/pthread_md.h
  head/lib/libthr/arch/mips/include/pthread_md.h
  head/lib/libthr/arch/powerpc/include/pthread_md.h
  head/lib/libthr/arch/riscv/include/pthread_md.h
  head/lib/libthr/thread/thr_private.h

Modified: head/lib/libthr/arch/aarch64/include/pthread_md.h
==============================================================================
--- head/lib/libthr/arch/aarch64/include/pthread_md.h	Fri May 26 15:55:03 2017	(r318954)
+++ head/lib/libthr/arch/aarch64/include/pthread_md.h	Fri May 26 15:56:28 2017	(r318955)
@@ -72,8 +72,6 @@ _tcb_get(void)
 	return (tcb);
 }
 
-extern struct pthread *_thr_initial;
-
 static __inline struct pthread *
 _get_curthread(void)
 {

Modified: head/lib/libthr/arch/arm/include/pthread_md.h
==============================================================================
--- head/lib/libthr/arch/arm/include/pthread_md.h	Fri May 26 15:55:03 2017	(r318954)
+++ head/lib/libthr/arch/arm/include/pthread_md.h	Fri May 26 15:56:28 2017	(r318955)
@@ -75,8 +75,6 @@ _tcb_get(void)
 #endif
 }
 
-extern struct pthread *_thr_initial;
-
 static __inline struct pthread *
 _get_curthread(void)
 {

Modified: head/lib/libthr/arch/mips/include/pthread_md.h
==============================================================================
--- head/lib/libthr/arch/mips/include/pthread_md.h	Fri May 26 15:55:03 2017	(r318954)
+++ head/lib/libthr/arch/mips/include/pthread_md.h	Fri May 26 15:56:28 2017	(r318955)
@@ -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)
 {

Modified: head/lib/libthr/arch/powerpc/include/pthread_md.h
==============================================================================
--- head/lib/libthr/arch/powerpc/include/pthread_md.h	Fri May 26 15:55:03 2017	(r318954)
+++ head/lib/libthr/arch/powerpc/include/pthread_md.h	Fri May 26 15:56:28 2017	(r318955)
@@ -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)
 {

Modified: head/lib/libthr/arch/riscv/include/pthread_md.h
==============================================================================
--- head/lib/libthr/arch/riscv/include/pthread_md.h	Fri May 26 15:55:03 2017	(r318954)
+++ head/lib/libthr/arch/riscv/include/pthread_md.h	Fri May 26 15:56:28 2017	(r318955)
@@ -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)
 {

Modified: head/lib/libthr/thread/thr_private.h
==============================================================================
--- head/lib/libthr/thread/thr_private.h	Fri May 26 15:55:03 2017	(r318954)
+++ head/lib/libthr/thread/thr_private.h	Fri May 26 15:56:28 2017	(r318955)
@@ -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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201705261556.v4QFuSBF088306>