Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp318678rwd; Mon, 12 Jun 2023 14:08:53 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ635c6UoTBXOH/Yn3QF2Y5XhNnPxipf4wF/Aho9zaq8Mvf+j0eYY6e04G4SpLhH1BGe8oDZ X-Received: by 2002:a17:907:3fa4:b0:977:da9d:b842 with SMTP id hr36-20020a1709073fa400b00977da9db842mr10758735ejc.74.1686604133073; Mon, 12 Jun 2023 14:08:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686604133; cv=none; d=google.com; s=arc-20160816; b=SjNRg27Bx9/sARiw8p9MYB02d4yG3UwPl7IGn4QdmvChwy0nY+LvIjq7TNRmR3X79O eP767GMRWmjJejZugRVXysRKLLbBic+RXTdORw0S7IFj6FqAUjx2D2ETGjjxXHbTtga5 /DNXjBnPDsWJrWvw8dO2BoILf25vdtyh7s51So3As2rNwQfb7pBNwPNw7B0Dioc+kFYw gJf/Kytk9yce4CodhYre67i7g7sGeqjTqF2AWL+IR1HJorudcn6YpZBupyVgpZoA7GXu ETWWuhR5FFgvvl9OpDYOS/GCd1KA6ZIWrVNP5BbOhpAQc6LD9+TunWTnNhEioM660Uk7 aeKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=pelU6aDCxs8hjXquclzYPPTsYkBi8J5CLu6lZAxAWMs=; b=y1bJ0oCCqSh0GY2ajmMBaWUsBdvyEgjfNUfv1RrV9E7ByH6Pa2A0a/iY8cUP5KlB0U v8hYlngYuybVOVVGTp8iPMTGj5RLd8zIf/5v5ZsvH1rzd8NgGDSJkrVWd8XXti4C2+0i kemMdT1ZurSMI4f/KRNOsIVrTJUfna84g3A2TL3f/nwUsiJ+3Y42ZfqpvlFHghxgqzSS 5CEYuY1I6fLBcUUgilnjon7+hGan+cpNVorh6SmJQA58L2oGe2+/sj6z/U/hXzAOvzaH 6iliQ0/OeJa4gtsDW0iRin8D5g/URPHKeTGEmbYJOYeTjRvLoaNepcRFv6O13xWU3a7g WKcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lCuC8fh+; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z27-20020a170906241b00b0096f87bf2f4dsi5964715eja.885.2023.06.12.14.08.28; Mon, 12 Jun 2023 14:08:53 -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=@kernel.org header.s=k20201202 header.b=lCuC8fh+; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238422AbjFLUvK (ORCPT + 99 others); Mon, 12 Jun 2023 16:51:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36100 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236013AbjFLUsZ (ORCPT ); Mon, 12 Jun 2023 16:48:25 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3B410109 for ; Mon, 12 Jun 2023 13:46:52 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id DCB2262F1B for ; Mon, 12 Jun 2023 20:45:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5A8D9C43332; Mon, 12 Jun 2023 20:45:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686602717; bh=j0LQ24TQ8hn7bjW10yO2qmeOU+M13OFAUcFTpL2cefU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lCuC8fh+QlxTCY5xG4i8JuKCqO6tlVs/PbKHrohOTgt7hDdpeMUPOI/iz7Ng7D2t8 78IW6X+b+68e7mvsqzIGcxl0JheD7E0GAPAporUUanzCkR57d5jxMcigGsZr3ZZGMV 0smqwOPlKxXQv3skFuB4e5qCjSmoRxyGSsquzu5HgIQ7T/1uktnJAORlPRbHRprpg3 ABx65KvMs0jAd0Ce2AtSYrzgtMGBZY4pB++FO2LdfLyCfi2A+7/H1ANlwoaTA3PVbP Ptj0a5Hfwjco3Z0zXj5f3cnwEWbw5lxNw2yj6rJ464VPzJCpuoJTnu9vQyOak43Jmd f0vfmf9vw2NpA== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 1DB65CE3A8D; Mon, 12 Jun 2023 13:45:16 -0700 (PDT) From: "Paul E. McKenney" To: linux-kernel@vger.kernel.org Cc: gwml@vger.gnuweeb.org, kernel-team@meta.com, w@lwt.eu, Zhangjin Wu , =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= , Willy Tarreau , "Paul E . McKenney" Subject: [PATCH v2 nolibc 46/53] selftests/nolibc: use INT_MAX instead of __INT_MAX__ Date: Mon, 12 Jun 2023 13:45:07 -0700 Message-Id: <20230612204514.292087-46-paulmck@kernel.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: <8b757cc0-3719-4e63-a755-9710384137bc@paulmck-laptop> References: <8b757cc0-3719-4e63-a755-9710384137bc@paulmck-laptop> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 From: Zhangjin Wu nolibc now has INT_MAX in stdint.h, so, don't mix INT_MAX and __INT_MAX__, unify them to INT_MAX. Signed-off-by: Zhangjin Wu Reviewed-by: Thomas Weißschuh Signed-off-by: Willy Tarreau Signed-off-by: Paul E. McKenney --- tools/testing/selftests/nolibc/nolibc-test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/nolibc/nolibc-test.c b/tools/testing/selftests/nolibc/nolibc-test.c index 7d4b8d12050d..ff3da9539809 100644 --- a/tools/testing/selftests/nolibc/nolibc-test.c +++ b/tools/testing/selftests/nolibc/nolibc-test.c @@ -936,7 +936,7 @@ static const struct test test_names[] = { int main(int argc, char **argv, char **envp) { int min = 0; - int max = __INT_MAX__; + int max = INT_MAX; int ret = 0; int err; int idx; @@ -984,7 +984,7 @@ int main(int argc, char **argv, char **envp) * here, which defaults to the full range. */ do { - min = 0; max = __INT_MAX__; + min = 0; max = INT_MAX; value = colon; if (value && *value) { colon = strchr(value, ':'); -- 2.40.1