From patchwork Thu Jul 22 10:58:20 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Weimer X-Patchwork-Id: 44451 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 554FB398B87D for ; Thu, 22 Jul 2021 10:58:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 554FB398B87D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1626951532; bh=LoieKeCK6yRbPsFjI4eUoL3eytX4P+tVh5Y10iB+ep4=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=rUYHR3ruOU2rF+ZiFTIQanwuQhXBoXPMyoDhTCiZ1gXoxsLJwqXSCgZ2ICdYMoy8s LJy9M4LzaDb+r8ynAhwQU7/EUCaRpSv82JLfCxHNmYc/fqcvJMA7OEsZ3esehtcccQ KD1ILKVtXJVqos+uE7WOvcY+00wyi25RX8ah94gI= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTP id 278AE3857C4C for ; Thu, 22 Jul 2021 10:58:29 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 278AE3857C4C Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-460-mvrLLed7M_GnnpNt3aZvKg-1; Thu, 22 Jul 2021 06:58:27 -0400 X-MC-Unique: mvrLLed7M_GnnpNt3aZvKg-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id A8D3E1812FC2; Thu, 22 Jul 2021 10:58:26 +0000 (UTC) Received: from oldenburg.str.redhat.com (ovpn-113-201.ams2.redhat.com [10.36.113.201]) by smtp.corp.redhat.com (Postfix) with ESMTPS id DC03D10016F2; Thu, 22 Jul 2021 10:58:21 +0000 (UTC) To: libc-alpha@sourceware.org Subject: [PATCH] Linux: Change type of dynamic PTHREAD_STACK_MIN to size_t Date: Thu, 22 Jul 2021 12:58:20 +0200 Message-ID: <87zgueipir.fsf@oldenburg.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-13.3 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Florian Weimer via Libc-alpha From: Florian Weimer Reply-To: Florian Weimer Errors-To: libc-alpha-bounces+patchwork=sourceware.org@sourceware.org Sender: "Libc-alpha" An unsigned type (instead of long int) is closer how to this constant is usually used. --- sysdeps/unix/sysv/linux/bits/pthread_stack_min-dynamic.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sysdeps/unix/sysv/linux/bits/pthread_stack_min-dynamic.h b/sysdeps/unix/sysv/linux/bits/pthread_stack_min-dynamic.h index 5f5fc5f024..9218269643 100644 --- a/sysdeps/unix/sysv/linux/bits/pthread_stack_min-dynamic.h +++ b/sysdeps/unix/sysv/linux/bits/pthread_stack_min-dynamic.h @@ -23,7 +23,7 @@ __BEGIN_DECLS extern long int __sysconf (int __name) __THROW; __END_DECLS -# define PTHREAD_STACK_MIN __sysconf (__SC_THREAD_STACK_MIN_VALUE) +# define PTHREAD_STACK_MIN ((size_t) __sysconf (__SC_THREAD_STACK_MIN_VALUE)) # endif # else # include