Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp1887190rwo; Thu, 3 Aug 2023 01:00:48 -0700 (PDT) X-Google-Smtp-Source: APBJJlE0h41TLs3xB5RIJdQAX6VDHnQlMI2L5y0+zJQE6kbSh62Ma4Fs8Dn5v+GfhvkMvn4U7E0/ X-Received: by 2002:a17:90a:d48a:b0:268:c5c7:f7f1 with SMTP id s10-20020a17090ad48a00b00268c5c7f7f1mr8837855pju.29.1691049647699; Thu, 03 Aug 2023 01:00:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691049647; cv=none; d=google.com; s=arc-20160816; b=gfkYbHli7S1Ennpcj93564Ry53ngUzf+RzcIlFn4O3o4xSwjgai50ThgwSc7g/AfQX BnhyOuaaymORPlksnkjE4Sm1rf6bFwXl/cEj6eyxIczi+8upOokvTb7to2dfE0G+ydS0 saMdUXKM5K61VJXJGjLaOVCFmNmGlrjQmpjaFIhuP3qs1EG960JoXEfQ+JaHLOtIeh9w cbkhJFmshlh+lAPSNk3fs0WM1vr/zT1pVZe97MoR4jyFKDiqrzaQEi7yqVfdTCabaTN6 LFup9QcoJhXg3I1QI1y2TRfa+oNynePEszTd2CCEO973c0BSCtSthP8I/JGeG+7o2fxG 5cFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=uYWoMpfDrx7+8Ml6GYVVQG5rfgEFdbpepu0fIaP6f34=; fh=UZfhiU2pgwvZdBOe9fFEhnfTQX0/6KsvXKQubWsfhik=; b=0gjS52eu2e0Nq/W2CmqYHEQXHkapR1PRCw+ao6K8quNK1QeVHt8hm7kILtQPb+4bMY MqhXqilzruAUnzl9r3kLdwhOCWyBQqSsMh25NetFJzpIfbohtlI4eYAGQjxKdnAKMmzc HA9W5ySDbFYQC9olE6Xah4AoFEF/EW5E0qY5McdBm3ZZeOHIqcBmB7hYbyHgW7uS/l3r FEnBQpTawisJ2eB5FNYVspPo23L/KCdOJC8AaeM4x/CIWjucrB6C6pYEy4jgHQ9dGVfF 1ejK5CQymAqEHEXP4nlrxFkSHt2MkwCknsDK0GEZsFfeiGMe3k2W5okoWwokY6QClZzu PI0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=E5yZKMaX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lb12-20020a170902fa4c00b001b89ce303e4si11802339plb.195.2023.08.03.01.00.33; Thu, 03 Aug 2023 01:00:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=E5yZKMaX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232506AbjHCH3R (ORCPT + 99 others); Thu, 3 Aug 2023 03:29:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43068 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232080AbjHCH2w (ORCPT ); Thu, 3 Aug 2023 03:28:52 -0400 Received: from todd.t-8ch.de (todd.t-8ch.de [IPv6:2a01:4f8:c010:41de::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 354302D6A; Thu, 3 Aug 2023 00:28:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1691047728; bh=iyNHuyFIri0jOYpPmNaXlYmA/yRvazXiYVqNbQvn0aU=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=E5yZKMaXfMDcQ/MX0pRsZBQWf6pZojYuI1Pwm4z6w7hhVsVENXrH8a1+Ql5rNZR0m bfRAuZ/hwFedoX0F2vuLwV9GNziF3rkJLk9wijv89ehEts6l574XX6RxK4hO8bFdq4 vFyrf1ykG59kT3PVcHZ/PasLqvG8ZaRyKwDwKz0Y= From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= Date: Thu, 03 Aug 2023 09:28:48 +0200 Subject: [PATCH v3 04/14] tools/nolibc: sys: avoid implicit sign cast MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20230803-nolibc-warnings-v3-4-bcc1a096ae02@weissschuh.net> References: <20230803-nolibc-warnings-v3-0-bcc1a096ae02@weissschuh.net> In-Reply-To: <20230803-nolibc-warnings-v3-0-bcc1a096ae02@weissschuh.net> To: Willy Tarreau , Shuah Khan Cc: linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Yuan Tan , Zhangjin Wu , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1691047727; l=702; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=iyNHuyFIri0jOYpPmNaXlYmA/yRvazXiYVqNbQvn0aU=; b=SdXAr1nPJemUkaNkDtnvzdItVrwOJcTSgFgDli3ZAyQlj1UF07hIZH3b5znuC4sOs+HytEHEL e3r3dEQzSeVDGMN3vbUKh7fFprXjSduqd+F2TbnPDKo5jBq03UZCaOY X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org getauxval() returns an unsigned long but the overall type of the ternary operator needs to be signed. Signed-off-by: Thomas Weißschuh --- tools/include/nolibc/sys.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/include/nolibc/sys.h b/tools/include/nolibc/sys.h index c151533ba8e9..833d6c5e86dc 100644 --- a/tools/include/nolibc/sys.h +++ b/tools/include/nolibc/sys.h @@ -466,7 +466,7 @@ static unsigned long getauxval(unsigned long key); static __attribute__((unused)) int getpagesize(void) { - return __sysret(getauxval(AT_PAGESZ) ?: -ENOENT); + return __sysret((int)getauxval(AT_PAGESZ) ?: -ENOENT); } -- 2.41.0