Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp5309273rwb; Mon, 31 Jul 2023 23:45:10 -0700 (PDT) X-Google-Smtp-Source: APBJJlH+LeDXJdD0BdpkOJugj14TvyswRfdINhDmW7lsEefT3jyNSytQYZXJleFeJ3178M8YCpkK X-Received: by 2002:a05:6808:986:b0:3a7:146d:85b9 with SMTP id a6-20020a056808098600b003a7146d85b9mr7030056oic.39.1690872310445; Mon, 31 Jul 2023 23:45:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690872310; cv=none; d=google.com; s=arc-20160816; b=XXavU+dGjrEBevHHiETkbAJoAVdXrnf8MI+mgBUijPgRccbpuatAE+aO0Y4pg8lf28 KkNLifWxKRS8CsZzkCTqH9xD+EwnrAOvdbleLSzZCYBDe+HUj8FXKldyIGzgeSIVlnx2 qky4Ndf4rBhGeUmMO22htrof8Py6Y/Mr5lC43lEbyWCMW9VrFZFBcdTwOArK4Sfqpr/B Lg92I5M+DpbTq0IXWXXtb/B+YukSOZv2xIkh/f/BEe+KjbcnA6BK+LAMFgCSIXir0cpW 7LFb8zbsf5076ScCrmUssrQYspUhF8jYEbl8/edtnrd+o/9sF/Q85xpTGoYjViKTPM3Y 7lqA== 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=MMY8hn58VEv/p/BjR19QUJvq0A0iWYJmqgU+PWQ1sXA=; fh=UZfhiU2pgwvZdBOe9fFEhnfTQX0/6KsvXKQubWsfhik=; b=GHbRxcsyQbEkLe6xFXHwLXKg7b6tW2RZAlrN3ttiONHusrXfty5htsjVJjX3sTnxjh THEhZASJ5n4ealFU0m1S6ej4+U/3X80RPw6k0r7ahcoiEXjEcQsUlqZo3ya9sUIh6mrp Hz8WF+T6Fhn8TSBsOBK+U1ZsmIjJP4yfSFB6w+/jxc/4IZnqi2FTODqNqXJxVHL5eya9 KBUf0RgOk+5Q7uWWYMRMfs9pYdKR5EbU/dHJJlHSc9yAj0jNQUk81OquRRLtRAMIqGbV 9eklNnJW4HJwQWf+dc8+lPU9CuOMQ22cZQ9to6O7VMlNeM00gfpRi8fjtwRm/pL28hVG BOnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=bxqjKiZq; 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 g12-20020a17090a9b8c00b002636d222400si10277777pjp.14.2023.07.31.23.44.58; Mon, 31 Jul 2023 23:45:10 -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=bxqjKiZq; 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 S230147AbjHAFaW (ORCPT + 99 others); Tue, 1 Aug 2023 01:30:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45224 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230080AbjHAFaS (ORCPT ); Tue, 1 Aug 2023 01:30:18 -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 3FC7E1FC8; Mon, 31 Jul 2023 22:30:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1690867812; bh=9JcxE/sRcogPp0X3mpqUzzaMeZv7ua9TZds5/yNngTc=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=bxqjKiZq2c9Jtsp+M1m02PFTibkb0pfk/Kp2mOnDkA0C9DQG7xI0hO3umOgBwTgo1 Xebk3FyJsTz6vrYb4/PZJPxGpDHWI5XlHkt7GVNTUMPJsyilyYr+Q4zt+sUneBCbSW fTW+3q/Ntk2am8fnyWjDSTsDYu//KGf7ZrFHMDQk= From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= Date: Tue, 01 Aug 2023 07:30:09 +0200 Subject: [PATCH v2 02/10] tools/nolibc: sys: avoid implicit sign cast MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20230801-nolibc-warnings-v2-2-1ba5ca57bd9b@weissschuh.net> References: <20230801-nolibc-warnings-v2-0-1ba5ca57bd9b@weissschuh.net> In-Reply-To: <20230801-nolibc-warnings-v2-0-1ba5ca57bd9b@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=1690867811; l=704; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=9JcxE/sRcogPp0X3mpqUzzaMeZv7ua9TZds5/yNngTc=; b=pDCw8ZJtjbVkmrXmNV1kxMUun7xzLlpXVsSxJJLeAbQtZE/iBEkEZgIPjqXWPbJC49X9Or75F SGWD4IbaZcKBAq5SY9G6Uam5wrMHWvW0QOPmRsSL8w8Gg5odi2eS61h 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,SPF_PASS,T_SCC_BODY_TEXT_LINE, T_SPF_HELO_TEMPERROR,URIBL_BLOCKED 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 889ccf5f0d56..2c5d9b06acf5 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)) long getpagesize(void) { - return __sysret(getauxval(AT_PAGESZ) ?: -ENOENT); + return __sysret((long)getauxval(AT_PAGESZ) ?: -ENOENT); } -- 2.41.0