From patchwork Tue Sep 22 12:17:03 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yann Sionneau X-Patchwork-Id: 1369035 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=uclibc-ng.org (client-ip=89.238.66.15; helo=helium.openadk.org; envelope-from=devel-bounces@uclibc-ng.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=quarantine dis=none) header.from=kalray.eu Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=kalray.eu header.i=@kalray.eu header.a=rsa-sha256 header.s=32AE1B44-9502-11E5-BA35-3734643DEF29 header.b=A5vTjP16; dkim-atps=neutral Received: from helium.openadk.org (helium.openadk.org [89.238.66.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4BwgLJ5dqqz9sTC for ; Tue, 22 Sep 2020 22:17:44 +1000 (AEST) Received: from helium.openadk.org (localhost [IPv6:::1]) by helium.openadk.org (Postfix) with ESMTP id 2CFDE1034C; Tue, 22 Sep 2020 14:17:24 +0200 (CEST) X-Original-To: devel@uclibc-ng.org Delivered-To: devel@helium.openadk.org Received: from mib.mailinblack.com (mib.mailinblack.com [185.7.73.95]) by helium.openadk.org (Postfix) with ESMTPS id 9022410163 for ; Tue, 22 Sep 2020 14:17:18 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mib.mailinblack.com (Postfix) with ESMTP id 005C8328DA3 for ; Tue, 22 Sep 2020 12:17:17 +0000 (UTC) Received: from mib.mailinblack.com (localhost [127.0.0.1]) by mib.mailinblack.com with SMTP (Mib Daemon ) id KFDXBFHQ for devel@uclibc-ng.org; Tue, 22 Sep 2020 12:17:17 +0000 (UTC) Received: from zimbra2.kalray.eu (zimbra2.kalray.eu [92.103.151.219]) by mib.mailinblack.com (Postfix) with ESMTPS id CBA3D328D53 for ; Tue, 22 Sep 2020 12:17:17 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by zimbra2.kalray.eu (Postfix) with ESMTP id 99A8727E104E for ; Tue, 22 Sep 2020 14:17:17 +0200 (CEST) Received: from zimbra2.kalray.eu ([127.0.0.1]) by localhost (zimbra2.kalray.eu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id 8p4gZ55iG2Hb; Tue, 22 Sep 2020 14:17:17 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by zimbra2.kalray.eu (Postfix) with ESMTP id 3904827E108F; Tue, 22 Sep 2020 14:17:17 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.10.3 zimbra2.kalray.eu 3904827E108F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kalray.eu; s=32AE1B44-9502-11E5-BA35-3734643DEF29; t=1600777037; bh=Q1PiCkEK42Wm6I1y2VZzSOlhvEZfiMxkYcCKKw/dzfI=; h=From:To:Date:Message-Id; b=A5vTjP16hkvA4j6p7R6EVJN7CUwjgo9komGtZNhgjgcE+tJQyN+9zR1aoTVEdLL1S iElJEFjalIo50LZFyFtxF/YAcV/GBH5po00v4qEqCvTkaXmX1FGDQVzG3b05KBXOgO +nweaYqLWBlSBBD+1TIyZcSibPuUnHcFaHTG9RsA= X-Virus-Scanned: amavisd-new at zimbra2.kalray.eu Received: from zimbra2.kalray.eu ([127.0.0.1]) by localhost (zimbra2.kalray.eu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 4u0-Hjt_WqSQ; Tue, 22 Sep 2020 14:17:17 +0200 (CEST) Received: from junon.lin.mbt.kalray.eu (unknown [192.168.37.161]) by zimbra2.kalray.eu (Postfix) with ESMTPSA id 1869227E1073; Tue, 22 Sep 2020 14:17:17 +0200 (CEST) From: Yann Sionneau To: devel@uclibc-ng.org Date: Tue, 22 Sep 2020 14:17:03 +0200 Message-Id: <20200922121703.12838-7-ysionneau@kalray.eu> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200922121703.12838-1-ysionneau@kalray.eu> References: <20200922121703.12838-1-ysionneau@kalray.eu> Subject: [uclibc-ng-devel] [PATCH 6/6] Fix warning due to unused label in NPTL X-BeenThere: devel@uclibc-ng.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: uClibc-ng Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: devel-bounces@uclibc-ng.org Sender: "devel" Fixes this: In file included from libpthread/nptl/pthread_create.c:48:0: libpthread/nptl/allocatestack.c: In function 'allocate_stack': libpthread/nptl/allocatestack.c:602:6: warning: label 'mprot_error' defined but not used [-Wunused-label] mprot_error: ^~~~~~~~~~~ Signed-off-by: Yann Sionneau --- libpthread/nptl/allocatestack.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libpthread/nptl/allocatestack.c b/libpthread/nptl/allocatestack.c index 137979542..7ef884543 100644 --- a/libpthread/nptl/allocatestack.c +++ b/libpthread/nptl/allocatestack.c @@ -599,7 +599,9 @@ allocate_stack (const struct pthread_attr *attr, struct pthread **pdp, if (mprotect (guard, guardsize, PROT_NONE) != 0) { int err; +#ifdef NEED_SEPARATE_REGISTER_STACK mprot_error: +#endif err = errno; lll_lock (stack_cache_lock, LLL_PRIVATE);