From patchwork Sat Jun 3 08:08:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangjin Wu X-Patchwork-Id: 102791 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp1530018vqr; Sat, 3 Jun 2023 01:14:14 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6bMGNb5G8rUfsxcCjB2Vx6HgQsANw4jA6qNo32/tx7aipJBBFdTrybuh++sXt+FEJxXblj X-Received: by 2002:a05:6358:9f82:b0:129:6079:14fe with SMTP id fy2-20020a0563589f8200b00129607914femr32894rwb.14.1685780053710; Sat, 03 Jun 2023 01:14:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685780053; cv=none; d=google.com; s=arc-20160816; b=hxViA/vK/T/+5e/b+YqgowLhReQiVFtl8Y9Jr3BV96iSzmcDxNqcoicqxzNj6Sppz1 YMvESRc42ATLLjgg7vOqjZZ0J/8YRfdmqjqvwRC4xDr2+NoTLLa6CTWu7v1MhRw2wAOV xpKNiojS2whYukAypHroUKqYxgV74DDNpJ8uf5x0cdKTAw5rKG5bWrTB16P6CujNjxjx 5x1GYew1VDUhOmb+IX1/UOUmQuS6CZmVDQrETFjjwAs9hA2gA93bcfxRv/kmJMnUAqDG aKp1rCHNA0a3thKMN5uhQVUFdRqbNs1AgpB9j282pKsjESIHeOc/N5hnU9iiGGiO+2Sj hhvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:feedback-id:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from; bh=tpph/Y6Mj6UWeuuJXKl5CUyThYrjDPWs8aN6MypAfFA=; b=KNC/fMgIIoJjwK3pfH/9nW9ywDzxWD1H/MOW59sPp6UfTlUGcQ3z9GvsLlGDwvIlxr c4IfUqcBUm4Qd+46pXDv0OdKVaBVhsy329GkkaqN0n3d1IuncUcMvv9UhekTxVmo4XJk R72l4koOAPfqkasUyp8fsMFccae9z7KDT9ywkqRAKi3YCIHl7X9McAFnmX+GHS/mrZ7A /8QcjPLQ+i5hiZG4Em6D2REGsrx1mGKhlwh+gH4PaTocu1/UW3J/5/1X7zOdv4jmay+X GLp0ypDRR7w3i9Tib5Z26Hn1V6jzr54ZhNUkwdtWV8CrdA5T20hpmia4CyEM5ynCZv9r dj/Q== ARC-Authentication-Results: i=1; mx.google.com; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b5-20020a63eb45000000b00534882d5329si2227840pgk.762.2023.06.03.01.14.01; Sat, 03 Jun 2023 01:14:13 -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; 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 S232236AbjFCIIq (ORCPT + 99 others); Sat, 3 Jun 2023 04:08:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57050 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229539AbjFCIIo (ORCPT ); Sat, 3 Jun 2023 04:08:44 -0400 Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.154.54.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5886B1B3; Sat, 3 Jun 2023 01:08:43 -0700 (PDT) X-QQ-mid: bizesmtp71t1685779713tgcqkwdm Received: from linux-lab-host.localdomain ( [119.123.130.226]) by bizesmtp.qq.com (ESMTP) with id ; Sat, 03 Jun 2023 16:08:32 +0800 (CST) X-QQ-SSF: 01200000000000D0V000000A0000000 X-QQ-FEAT: XBN7tc9DADLabrxk/+QDcnBfINyYg7hhkwxt2+gkdZwvWG8oXdYSvY4ACTUEK n+bM6hXEGtjzMWAut9D+MR9IRJiuWBUhAMptGJTyaSGuTS+zNj2PwvFLnK6O+fEod5ePmJ4 kzos7o/x54UwO+YylckkWOsgZYjfYkkzOkFnysR7xn77a0Nt3bl902/Q6v1226RSUYNfNWu rdohXqJ8xtcviTGsD4rZTt4RWdY9+j4APz5jkhrHYiZLLABKtnmK4VRSbYhhKXK0L2JlE+j +VGh5GKFc9D/O8lIopK9trH7Kn8+8UfZ2gzyuXCGyx3D6XP+U+U26Td3XAPDP0BjtgJJCkR 57O8mIZIN1jazn9PjSTbpuzjwHybPXzcb9PFM1ZIXMN3MtM3KCTcxmd9fs22pH2m7/At6HL X-QQ-GoodBg: 0 X-BIZMAIL-ID: 18070674266371447120 From: Zhangjin Wu To: w@1wt.eu Cc: falcon@tinylab.org, arnd@arndb.de, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-riscv@lists.infradead.org, thomas@t-8ch.de Subject: [PATCH v3 06/12] selftests/nolibc: use INT_MAX instead of __INT_MAX__ Date: Sat, 3 Jun 2023 16:08:12 +0800 Message-Id: <9e48ea5aab5a988fcba923632e6681c111dd5525.1685777982.git.falcon@tinylab.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:tinylab.org:qybglogicsvrsz:qybglogicsvrsz3a-3 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1767668505431243230?= X-GMAIL-MSGID: =?utf-8?q?1767668505431243230?= 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 --- 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 2a2954cb7bef..a8fcad801cf2 100644 --- a/tools/testing/selftests/nolibc/nolibc-test.c +++ b/tools/testing/selftests/nolibc/nolibc-test.c @@ -931,7 +931,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; @@ -979,7 +979,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, ':');