nptl: Fix __PTHREAD_MUTEX_INITIALIZER for !__PTHREAD_MUTEX_HAVE_PREV
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 26 Nov 2019 19:51:43 +0000 (16:51 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 26 Nov 2019 20:00:19 +0000 (17:00 -0300)
The nptl: Add struct_mutex.h added a wrong initializer for
architectures that uses the generic struct_mutex.h.

Checked on sparcv9-linux-gnu (where I noted the issue with the
nptl/tst-initializers1*).

sysdeps/nptl/bits/struct_mutex.h

index 138320b..24d42c4 100644 (file)
@@ -78,7 +78,7 @@ struct __pthread_mutex_s
   0, 0, 0, 0, __kind, 0, { 0, 0 }
 #else
 # define __PTHREAD_MUTEX_INITIALIZER(__kind) \
-  0, 0, 0, 0, __kind, { 0 }
+  0, 0, 0, __kind, 0, { 0 }
 #endif
 
 #endif