Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1066692pxb; Fri, 1 Apr 2022 03:48:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwZdVKc3MIqari58flxMvpvhxyvt2G1B3+XlhSnqy3D2oyrtFPnkxHeyTO3K5hX0IYAOrEZ X-Received: by 2002:a63:7f50:0:b0:386:2b5c:9d16 with SMTP id p16-20020a637f50000000b003862b5c9d16mr14652593pgn.153.1648810109510; Fri, 01 Apr 2022 03:48:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648810109; cv=none; d=google.com; s=arc-20160816; b=d8eTHuzrwDjgv5zGWvf9Knwycxjkaa0Boz1zwqVr6JP1N1d2h8b8WOzAS4R2DeXSnN HYBKYSBQ4wvSMySRnPIQviqyKlc2J0SUbcoIHO2UKzH8CJdZTp0hCp+rotq4ivjFpYnc h5pMwAWWupjdh2OGNF123r4Td9YH6YYj0s79eljvBhGv/ZziM3spzIXhdzWgW91/PFQm 5CB9cs5YnNLxhOQ01ObXMv5wztOvzhHa5v3sZbBr+t/ACJikTorFIZ3sPxthlefdzSHW imnd425Y+OFgU+BIlhxroxFM7qVlxw4SIrGZV5NXuFNfO+DgJKs5+AYbrMNaTpxZiruN T2iA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=gADLe4HDBmNTTRadD9I18Eo59xDMA1VeRyu9AlQVupI=; b=MfWRp/VNwMYY5zS4dDZsQiBo2IFQKWEn6GK100onaAb70gxyI+fWu7oGH+pOy1Qntc UsW81AoDZFBMQpqjofoBEs6751ZE6Bg3RDpO3cEBNeyvoCe0XH0CzTx4rpeHbjSODwl6 N1cMpU2X9ivsxFoHiHiWhyVAWJYRmwmUfb/XDFaOTBsIasD4InioPK9CM0ZzP2nHW8bY B0yPwKJBD+3V5jJQyBekPhUU+Funn9mTPzQDQk7Pp+tbAVwQWiVjOZZLHhzjO2S9yj53 jLvcHKUNpV4p3Bg7aV+UkK4pL4GFcJEJmQyFH74SZkgsQEX1OBsuksvf/35XIpbSDewW 9VfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=crQ0nfYz; 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 i190-20020a639dc7000000b0038212d5c721si1996750pgd.542.2022.04.01.03.48.17; Fri, 01 Apr 2022 03:48:29 -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=@linux-foundation.org header.s=google header.b=crQ0nfYz; 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 S234139AbiCaSTL (ORCPT + 99 others); Thu, 31 Mar 2022 14:19:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50942 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233975AbiCaSTG (ORCPT ); Thu, 31 Mar 2022 14:19:06 -0400 Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EF52B1E6E9C for ; Thu, 31 Mar 2022 11:17:17 -0700 (PDT) Received: by mail-lf1-x130.google.com with SMTP id t25so618502lfg.7 for ; Thu, 31 Mar 2022 11:17:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=gADLe4HDBmNTTRadD9I18Eo59xDMA1VeRyu9AlQVupI=; b=crQ0nfYz9r5y0LNjvAz6Kl9GkH8VcN7+M3IRO0/MHMSfuwZ3QQbJPMFmMEChGOGuRi lgQsMapR+mH3g1uSCfkahgw35sLDQIFcmdfsSdI3qkJ8Vg8TWDA8dUjlprf7JcAT2Psh pjWsZFv1Yzq1yQ6rqecDWGyO9u5lr3MHZuD6Q= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=gADLe4HDBmNTTRadD9I18Eo59xDMA1VeRyu9AlQVupI=; b=YDWVu4NLDPu2fFybT8YirFs/Zz7s+qQyGCi9sT/uQjhr4Ppa82psspMjbKssqzBjfy DNv8Ii/B8X6KekbnohH0g0RG75pEPd1nu0T65kuxhrfH1BQ5x0U7YKAstrna0m4MPW5s Tc56lR6sl8A48YrqphMt1JKUD4Blb90XE0p+vY7vQDi/4RaWwhU1v8E03hZzO0ejn7Yt 6SVA6gLR6RIXVXok/Goktgvl2InGtU4jvoE1XlDOyiaPcc4CXgdvkbNyeIwFyPM98ggr z21WyZ04g8wm0wAdyw/RHUCragKqdHRYqrbdxo4FAbDJ4J0kvmb06Gr462x4H0x5prT4 kebA== X-Gm-Message-State: AOAM533Za2mUOflNjuF4AdSbRRSbpSFvkfB2hJSG2LWK7ty12OlmcZIz oVithAleZwTUGeJgTeJIO5wu4nkURwe+Yh+6 X-Received: by 2002:a05:6512:ad3:b0:44a:614e:9d4d with SMTP id n19-20020a0565120ad300b0044a614e9d4dmr11297345lfu.557.1648750632100; Thu, 31 Mar 2022 11:17:12 -0700 (PDT) Received: from mail-lj1-f176.google.com (mail-lj1-f176.google.com. [209.85.208.176]) by smtp.gmail.com with ESMTPSA id k2-20020a056512330200b0044a096ea7absm10846lfe.54.2022.03.31.11.17.10 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 31 Mar 2022 11:17:10 -0700 (PDT) Received: by mail-lj1-f176.google.com with SMTP id h11so902195ljb.2 for ; Thu, 31 Mar 2022 11:17:10 -0700 (PDT) X-Received: by 2002:a2e:9041:0:b0:24a:ce83:dcb4 with SMTP id n1-20020a2e9041000000b0024ace83dcb4mr11242362ljg.291.1648750629685; Thu, 31 Mar 2022 11:17:09 -0700 (PDT) MIME-Version: 1.0 References: <20220126171442.1338740-1-aurelien@aurel32.net> <20220331103247.y33wvkxk5vfbqohf@pengutronix.de> <20220331103913.2vlneq6clnheuty6@pengutronix.de> <20220331105112.7t3qgtilhortkiq4@pengutronix.de> In-Reply-To: <20220331105112.7t3qgtilhortkiq4@pengutronix.de> From: Linus Torvalds Date: Thu, 31 Mar 2022 11:16:53 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] riscv: fix build with binutils 2.38 To: Marc Kleine-Budde Cc: Aurelien Jarno , Linux Kernel Mailing List , stable , Kito Cheng , Paul Walmsley , Palmer Dabbelt , Albert Ou , "open list:RISC-V ARCHITECTURE" , Sparse Mailing-list , ukl@pengutronix.de, Luc Van Oostenryck Content-Type: multipart/mixed; boundary="0000000000009b482f05db87ab14" X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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 --0000000000009b482f05db87ab14 Content-Type: text/plain; charset="UTF-8" On Thu, Mar 31, 2022 at 3:51 AM Marc Kleine-Budde wrote: > > Cc += linux-sparse, Uwe, Luc Van Oostenryck > > tl;dr: > > A recent change in the kernel regarding the riscv -march handling breaks > current sparse. Gaah. Normally sparse doesn't even look at the -march flag, but for riscv it does, because it's meaningful for the predefined macros. Maybe that 'die()' shouldn't be so fatal. And maybe add a few more extensions (but ignore them) to the parsing. Something ENTIRELY UNTESTED like the attached. Linus --0000000000009b482f05db87ab14 Content-Type: text/x-patch; charset="US-ASCII"; name="patch.diff" Content-Disposition: attachment; filename="patch.diff" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_l1fbjlbv0 IHRhcmdldC1yaXNjdi5jIHwgMTQgKysrKysrKysrKysrLS0KIDEgZmlsZSBjaGFuZ2VkLCAxMiBp bnNlcnRpb25zKCspLCAyIGRlbGV0aW9ucygtKQoKZGlmZiAtLWdpdCBhL3RhcmdldC1yaXNjdi5j IGIvdGFyZ2V0LXJpc2N2LmMKaW5kZXggNmQ5MTEzYzEuLjIwMWFjMzc1IDEwMDY0NAotLS0gYS90 YXJnZXQtcmlzY3YuYworKysgYi90YXJnZXQtcmlzY3YuYwpAQCAtMyw2ICszLDcgQEAKICNpbmNs dWRlICJ0YXJnZXQuaCIKICNpbmNsdWRlICJtYWNoaW5lLmgiCiAjaW5jbHVkZSA8c3RyaW5nLmg+ CisjaW5jbHVkZSA8c3RkaW8uaD4KIAogI2RlZmluZSBSSVNDVl8zMkJJVAkoMSA8PCAwKQogI2Rl ZmluZSBSSVNDVl82NEJJVAkoMSA8PCAxKQpAQCAtNDcsNiArNDgsMTIgQEAgc3RhdGljIHZvaWQg cGFyc2VfbWFyY2hfcmlzY3YoY29uc3QgY2hhciAqYXJnKQogCQl7ICJuIiwJCTAgfSwKIAkJeyAi aCIsCQkwIH0sCiAJCXsgInMiLAkJMCB9LAorCQl7ICJpIiwJCTAgfSwKKwkJeyAiZSIsCQkwIH0s CisJCXsgIl8iLAkJMCB9LAorCQl7ICJDb3VudGVycyIsCTAgfSwKKwkJeyAiWmljc3IiLAkwIH0s CisJCXsgIlppZmVuY2VpIiwJMCB9LAogCX07CiAJaW50IGk7C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