Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7792627rwb; Mon, 12 Dec 2022 20:40:24 -0800 (PST) X-Google-Smtp-Source: AA0mqf4V+jFA10StiUD/Om0tEHy2bgDRpYxFjbjmdlvFp8Wyl6pH0bYxFkJzN7qSNQt0dz1pZfbh X-Received: by 2002:a17:902:d509:b0:189:b0fe:d70f with SMTP id b9-20020a170902d50900b00189b0fed70fmr24373838plg.60.1670906423991; Mon, 12 Dec 2022 20:40:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670906423; cv=none; d=google.com; s=arc-20160816; b=Cpio27n9BjlAbPnR8ZqfMIR39frx22vTW7jn2yKIbaa3ryxfrNF4VFzThFNxaf8r15 35gcjLh8Gqa/2I8cVGlP4Z/F7fxEqWnR0T/GLCPTpJlQwByq491QHN+cNTulrp/G3Dat T4ST7cUOqZEHny3XB6epjAzCHU9974IRusyhLi6EmsmVhr+CvjyPJ3UjXgrABKEYewt3 XFTOlU1QqA9rWhFfEVwouvNKPbZ7AU8MOP3M+28kFNxJ7lukhyCXihjdyZQEBeyvLDoj SXWF4R2ml9VjUyYPSRaTxD2l9tbiogaaj5VcJmmjgUIwL/Y21ZaAMLgi9PxTn0Vb606Z x2RQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:ui-outboundreport:jabber-id:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=HSOEme8RBnUMmFC7BmC2VrrqwSCOLn+e2z8xDz8TvUk=; b=kCR6V75u478ETPrAqPgsv5kIccCkCoCcEYjos2d8aHS9Ddg6iDwPyQ3P1+rG08oClW 4JkNJdYpKDZrGD0EYrhUxUFP8wcfUAB8EmBgJBif6lGcihG1Bl/ooZyRRpsAXGwcWVRt LAYWxOdk93wFIDJkwA+nURETcm2LWdICHRrPjxrUZvqQXeZ7gR2QmFnSL3WRFJsjwhAC ge/rXTAX24wlw7gSsQ0zmZRNrt696TMk+ztx1jqAVG8QRHmRbqcDQzzFzvbhuLYpHvtO iy0hwTrp5npEv7MdkiYKZLYosqElt2+eVmLIDegC4pIML1hxh4vsKcqUS8n8hPY/lCZL 9hCA== 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; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=fjasle.eu Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s134-20020a632c8c000000b00476de006c26si10801272pgs.52.2022.12.12.20.40.12; Mon, 12 Dec 2022 20:40:23 -0800 (PST) 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; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=fjasle.eu Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234027AbiLMEEj (ORCPT + 75 others); Mon, 12 Dec 2022 23:04:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56824 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233994AbiLMEEd (ORCPT ); Mon, 12 Dec 2022 23:04:33 -0500 Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF7C51E3F3; Mon, 12 Dec 2022 20:04:27 -0800 (PST) Received: from leknes.fjasle.eu ([46.142.49.245]) by mrelayeu.kundenserver.de (mreue010 [212.227.15.167]) with ESMTPSA (Nemesis) id 1M8hph-1p0FWq1vwf-004im1; Tue, 13 Dec 2022 05:02:25 +0100 Received: from localhost.fjasle.eu (bergen.fjasle.eu [IPv6:fdda:8718:be81:0:6f0:21ff:fe91:394]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (Client did not present a certificate) by leknes.fjasle.eu (Postfix) with ESMTPS id C79803C0C9; Tue, 13 Dec 2022 05:02:17 +0100 (CET) Authentication-Results: leknes.fjasle.eu; dkim=none; dkim-atps=neutral Received: by localhost.fjasle.eu (Postfix, from userid 1000) id 90111381; Tue, 13 Dec 2022 05:02:17 +0100 (CET) Date: Tue, 13 Dec 2022 05:02:17 +0100 From: Nicolas Schier To: Masahiro Yamada Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Palmer Dabbelt , Albert Ou , Borislav Petkov , Dave Hansen , "H. Peter Anvin" , Ingo Molnar , Nathan Chancellor , Nick Desaulniers , Palmer Dabbelt , Paul Walmsley , Thomas Gleixner , Tom Rix , linux-riscv@lists.infradead.org, llvm@lists.linux.dev, x86@kernel.org Subject: Re: [PATCH] kbuild: add test-{ge,gt,le,lt} macros Message-ID: References: <20221211024647.2614394-1-masahiroy@kernel.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="0t9NkD14nKZzrYq+" Content-Disposition: inline In-Reply-To: <20221211024647.2614394-1-masahiroy@kernel.org> Jabber-ID: nicolas@fjasle.eu X-Operating-System: Debian GNU/Linux bookworm/sid X-Provags-ID: V03:K1:5qgXUwpYs/m4w9C/Xh/pxvEtqm4qXUOG8JKpnIXe5eiduWTcQFb 30ONln8NYJ54kyn7N5Swb0WdMBeILEHeTxKo552VtI/0gx4CYlzWmzwPsBUlXXQjBUZRkgX bidVuKdQv6jurc+NQ8+I3REVLkX0gGQqS7997ynbJTuoHmlQHubHLOUh17BhS7NmZ4vIv76 MLkjxWSN7McjetvSnVYnQ== UI-OutboundReport: notjunk:1;M01:P0:Bg++/5kr/Xk=;QHknaR3hrJn5tOUaaqybmwSHhOE WN5sxwZWC2pEba184Uuie/TSR3y2jVDpePH8ZnEdn0KeTzp/IWPwKkWADw3oxh3aQ1lgT4fQ2 2vyvr+jR8Kw6GwbnUM1oPkJy2waZA82jB82zoLsWIIjiAOwR7DZ6FmVz+Ts3fRFqxfEQu2ejM kJ8u6ls8ocLXQP3PNoGgDtDe6nBHmtvfbmvS4sNsSYniPQfAV+bHQwKIQMoo+2SCJLQWp0idF qb60uDU/B25HUDkSVvCqLDYMO9F/l4Pm2ojLzwAkxDACEHqDwBlh6zjqMKFAYI0V/CiDpIGJV yluJnCYJhti9SJd2uv5kLTPCJKbdjqk0XuZDwc31HTZTPoeDY4zkH/OrmD1M/7nh2tWgwx9yz 5XNGM7391CtMzfIbA0uPpTXuxDprOpsp0CZmxGA5iIcboJ7AF+xvxXaujbPLfx+PgdfTJ3wgm BdwO+N3iVpYZVhVeYIPPzC4Zm1xcjQWD9bj4Y4Dp8gziFdh42lXnEq7uyYfST5t47+f8rtiQW EOZ1KnVIc1z31LIXRM+yZeYApmyl068siCVf+OfAxc733fj0dYXUV6h5ViCkrC/tREL1YNXWG puszdn0uLYGtZcWQRj45zKp3eJTxYtZ8xNLWEAc3hAcvzdgx+YF9TMQ9mqx81GBQLhgUuiBfj nMwvEmO26cA7JhMffLSk03SAp3kCquFNo5Tw6y2Sbw== X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS 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 --0t9NkD14nKZzrYq+ Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun 11 Dec 2022 11:46:47 GMT, Masahiro Yamada wrote: > GNU Make 4.4 introduced $(intcmp ...), which is useful to compare two > integers without forking a new process. >=20 > Add test-{ge,gt,le,lt} macros, which work more efficiently with GNU > Make >=3D 4.4. For older Make versions, they fall back to the 'test' > shell command. >=20 > The first two parameters to $(intcmp ...) must not be empty. To avoid > the syntax error, I appended '0' to them. Fortunately, '00' is treated > as '0'. This is needed because CONFIG options may expand to an empty > string when the kernel configuration is not included. >=20 > Signed-off-by: Masahiro Yamada > Acked-by: Palmer Dabbelt # RISC-V > --- >=20 > Changes in v3: > - Use $(intcmp ...) instead of playing with $(sort ...) Reviewed-by: Nicolas Schier --0t9NkD14nKZzrYq+ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEh0E3p4c3JKeBvsLGB1IKcBYmEmkFAmOX+UkACgkQB1IKcBYm EmkfAhAApWxZ5TLlye6r6ubq1oPH6KxdMTM7wec0/MHj+Ga99bJcULpcYoWA/016 vz1Al+59s3cJoV5oCTxVobXu2XpBVhpxiKWVQdKZFpSHt7LIhN/nbSCsDkyu7Lz1 RoVUZFFM4D3cChGVHZMHFsw9M1TE/5PplZ2LqfcCm6bsDuXWcEwpAS2vfuwk3ios UQhvm6p76lKOhPynxY4xFJXaQDMseGlr3FlpbKLW9GZoHd3dWyBGvx2geawvo3Pg ixoYKcvAj/EgrGYk2QP7PUGz7EB+cu5b0IPuSfp5BzNSuoZq9D8bZe1tIPD3d2sI 38YlpmqDa8RDTetSBpRXtRKtwtaC8HOxILKNLpEef4kb3G9/yKymY7Ao6DSh/bj3 gSF0PgeaaUaUmYw2kF5s9VuIPEoP8acIzNnGeVFRBPj5xEqTRI8inyYDZsR6WzfJ iKSB8+Zt85GJMhMXdqrEhWcGmpjZEFy4jkj+IwzEPHNbXTkNz0hNh1xqaVXayrav 7YGt/E7FEwoCsix2WlEIrSk/TU2Xdm9dTvjRhrkDrDMxSYlgXwFXiR4l4kWPLcDL 8h+BoSc5QNYOAFoy3oNIlMySHhNUuKB/mmCRiLGb2tly/DyttNkmzpr7Y24EAlVU sHaM9f3vw8RwTv6w2sNW+6y0/Cc+84Um1el7bLhN1TZ8S8b9V2U= =ESv1 -----END PGP SIGNATURE----- --0t9NkD14nKZzrYq+--