]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
resolv, rt: Change some extern inline functions to static inline
authorPeter Collingbourne <pcc@google.com>
Fri, 8 May 2026 17:53:24 +0000 (19:53 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Fri, 8 May 2026 17:53:24 +0000 (19:53 +0200)
The following functions:

__aio_create_helper_thread
__aio_start_notify_thread
__gai_create_helper_thread
__gai_start_notify_thread

are declared as extern inline, but no translation unit provides their
real definitions. This can lead to a link failure if the functions are
not inlined. Fix it by declaring them as static inline instead.

Reviewed-by: Florian Weimer <fweimer@redhat.com>
resolv/gai_misc.c
rt/aio_misc.c
sysdeps/mach/hurd/gai_misc.h
sysdeps/nptl/gai_misc.h
sysdeps/unix/sysv/linux/aio_misc.h

index 5cf6d7c149fb7cee062038aeebd1e26e0810dddf..3f13dc4520cc953b4282092315fbe428608b8f1b 100644 (file)
@@ -28,7 +28,7 @@
 #ifndef gai_create_helper_thread
 # define gai_create_helper_thread __gai_create_helper_thread
 
-extern inline int
+static inline int
 __gai_create_helper_thread (pthread_t *threadp, void *(*tf) (void *),
                            void *arg)
 {
index 724486e66f514628015baafe9ff750b164e5eb78..639d693418706bf82b98264ae48bb43c183e30c2 100644 (file)
@@ -33,7 +33,7 @@
 #ifndef aio_create_helper_thread
 # define aio_create_helper_thread __aio_create_helper_thread
 
-extern inline int
+static inline int
 __aio_create_helper_thread (pthread_t *threadp, void *(*tf) (void *), void *arg)
 {
   pthread_attr_t attr;
index 0237e59bf619920d8d1d2dbc885493e7540ce3e6..832c5ae1b6e4dabc918a7b9d86534cbc9b185e91 100644 (file)
@@ -22,7 +22,7 @@
 #define gai_start_notify_thread __gai_start_notify_thread
 #define gai_create_helper_thread __gai_create_helper_thread
 
-extern inline void
+static inline void
 __gai_start_notify_thread (void)
 {
   sigset_t ss;
@@ -32,7 +32,7 @@ __gai_start_notify_thread (void)
   assert_perror (sigerr);
 }
 
-extern inline int
+static inline int
 __gai_create_helper_thread (pthread_t *threadp, void *(*tf) (void *),
                            void *arg)
 {
index 0416e271f4edd19b2b62f4675c6062054b877f2b..8461fa88bff34d8c9d9a2c593cebb8bdb3df46f4 100644 (file)
@@ -76,7 +76,7 @@
 #define gai_start_notify_thread __gai_start_notify_thread
 #define gai_create_helper_thread __gai_create_helper_thread
 
-extern inline void
+static inline void
 __gai_start_notify_thread (void)
 {
   sigset_t ss;
@@ -84,7 +84,7 @@ __gai_start_notify_thread (void)
   (void) __pthread_sigmask (SIG_SETMASK, &ss, NULL);
 }
 
-extern inline int
+static inline int
 __gai_create_helper_thread (pthread_t *threadp, void *(*tf) (void *),
                            void *arg)
 {
index 578ff1cf27b37664ed7e8e531987bee04d8b433d..81a917f42d8cc87b9a93618b6da23abf13e56388 100644 (file)
@@ -25,7 +25,7 @@
 # define aio_start_notify_thread __aio_start_notify_thread
 # define aio_create_helper_thread __aio_create_helper_thread
 
-extern inline void
+static inline void
 __aio_start_notify_thread (void)
 {
   sigset_t ss;
@@ -34,7 +34,7 @@ __aio_start_notify_thread (void)
                         __NSIG_BYTES);
 }
 
-extern inline int
+static inline int
 __aio_create_helper_thread (pthread_t *threadp, void *(*tf) (void *),
                            void *arg)
 {