From patchwork Tue Jan 14 18:52:49 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Thibault X-Patchwork-Id: 37375 Received: (qmail 93558 invoked by alias); 14 Jan 2020 18:53:29 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 93474 invoked by uid 89); 14 Jan 2020 18:53:29 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-26.1 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS, SPF_NEUTRAL autolearn=ham version=3.3.1 spammy=HContent-Transfer-Encoding:8bit X-HELO: hera.aquilenet.fr From: Samuel Thibault To: libc-alpha@sourceware.org Cc: Samuel Thibault Subject: [PATCH 04/10] htl: Make __PTHREAD_ONCE_INIT more flexible Date: Tue, 14 Jan 2020 19:52:49 +0100 Message-Id: <20200114185255.25813-6-samuel.thibault@ens-lyon.org> In-Reply-To: <20200114185255.25813-1-samuel.thibault@ens-lyon.org> References: <20200114185255.25813-1-samuel.thibault@ens-lyon.org> MIME-Version: 1.0 by moving its (struct __pthread_once) cast into PTHREAD_ONCE_INIT. Reviewed-by: Adhemerval Zanella --- sysdeps/htl/bits/types/struct___pthread_once.h | 2 +- sysdeps/htl/pthread.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sysdeps/htl/bits/types/struct___pthread_once.h b/sysdeps/htl/bits/types/struct___pthread_once.h index 31a0c0817b..a6b6db708c 100644 --- a/sysdeps/htl/bits/types/struct___pthread_once.h +++ b/sysdeps/htl/bits/types/struct___pthread_once.h @@ -28,6 +28,6 @@ struct __pthread_once }; #define __PTHREAD_ONCE_INIT \ - (struct __pthread_once) { 0, __PTHREAD_SPIN_LOCK_INITIALIZER } + 0, __PTHREAD_SPIN_LOCK_INITIALIZER #endif /* bits/types/struct___pthread_once.h */ diff --git a/sysdeps/htl/pthread.h b/sysdeps/htl/pthread.h index 3216860493..38c61e8da3 100644 --- a/sysdeps/htl/pthread.h +++ b/sysdeps/htl/pthread.h @@ -802,7 +802,7 @@ extern int pthread_setspecific (pthread_key_t __key, const void *__value) #include -#define PTHREAD_ONCE_INIT __PTHREAD_ONCE_INIT +#define PTHREAD_ONCE_INIT (struct __pthread_once) { __PTHREAD_ONCE_INIT } /* Call INIT_ROUTINE if this function has never been called with *ONCE_CONTROL, otherwise do nothing. */