Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1641875pxb; Wed, 9 Feb 2022 00:56:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJxkiIm9mks6FUhlfqOpZR+w2mhMC03F8kp3tmVhV6+EPXXrOEOSE1j4B0qYgScJ1ZnsC+I9 X-Received: by 2002:a17:90b:33c9:: with SMTP id lk9mr2276894pjb.45.1644396997235; Wed, 09 Feb 2022 00:56:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644396997; cv=none; d=google.com; s=arc-20160816; b=vltTTKPi+piuifuulHcRPM3MCYUeWGVW1d2QSyaRcSELkby53jNJTRfo+n6DwyeI/Q LcGH2PY7+Ha8j+oX5qvPPxydmKDOW0ikAugpP/Mse2Ea1s2Cjt1HP4RLkE+BW54wtDzU w5Eg5BxCg1TLYdXg9iSSM6smaJownzUjix6axfNTNtZQhZvfAUprWPqV48s4Hk41AQLo En1RU/7/o0vpELIh+ntQhblBrfdbNjkQ7vl/9ulZ1/30RGFumvya50V2bki/4xDX/ifY azjj/dLdmiJ6vI3X0L7rPPCkKaG5gQXt4KWm5zqIdirKZzvkO2X9nQ4eMQ+IFZ84Nqia DBIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=6jFbNAwyOk3iuCDhKuOHY3ZDJqJ9ut/Wxc0ijH5Beik=; b=fiFFBA7ppZW2ovNwVMe2nA1XOtiUnPXxFQxbWe1mk4feFq9uOTpjVrUmlydNdtg0JY 7FcfFbnehYP9mrD7OtfjFKFTVsSZ8iM9KV/Pxfoxkie/NuoH7nKabY7OwZJsg9FTo8JI 7EdoG1m8nDDW0JQnHfiXU5gKRAhmZqFwLD1jYs+FbFZDRdNGoErbKIRkoQmH7QtEwi/X R61SLdm4SeHdKyFeHu1A0eDsScXDGl7J1MCD3c5npDRkH4KosYTnn/GKTiibyo8pSjMq E9uPeF4gTP6UR9fa9NHIO3qYVg+lBCZe4evWityx4yhqoArvD6Gb8PjMs+kmZukDsTrb IAEQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o5si1722452pfg.202.2022.02.09.00.56.24; Wed, 09 Feb 2022 00:56:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345478AbiBGRq2 (ORCPT + 99 others); Mon, 7 Feb 2022 12:46:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57602 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1381104AbiBGRk3 (ORCPT ); Mon, 7 Feb 2022 12:40:29 -0500 Received: from elvis.franken.de (elvis.franken.de [193.175.24.41]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 037F4C0401D9; Mon, 7 Feb 2022 09:40:28 -0800 (PST) Received: from uucp (helo=alpha) by elvis.franken.de with local-bsmtp (Exim 3.36 #1) id 1nH7yl-0006Gx-02; Mon, 07 Feb 2022 18:39:07 +0100 Received: by alpha.franken.de (Postfix, from userid 1000) id 45700C2116; Mon, 7 Feb 2022 18:36:09 +0100 (CET) Date: Mon, 7 Feb 2022 18:36:09 +0100 From: Thomas Bogendoerfer To: Nathan Chancellor Cc: Huacai Chen , Jiaxun Yang , Nick Desaulniers , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev Subject: Re: [PATCH v2 2/2] MIPS: Loongson{2ef,64}: Wrap -mno-branch-likely with cc-option Message-ID: <20220207173609.GC16822@alpha.franken.de> References: <20220125221925.3547683-1-nathan@kernel.org> <20220125221925.3547683-2-nathan@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220125221925.3547683-2-nathan@kernel.org> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_PASS,SPF_NONE,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 On Tue, Jan 25, 2022 at 03:19:25PM -0700, Nathan Chancellor wrote: > This flag is not supported by clang, which results in a warning: > > clang-14: warning: argument unused during compilation: '-mno-branch-likely' [-Wunused-command-line-argument] > > This breaks cc-option, which adds -Werror to make this warning fatal and > catch flags that are not supported. > > Wrap this flag in cc-option so that it does not cause cc-option to fail, > which can cause randconfigs to be really noisy, due to warnings not > getting disabled that should be. > > Additionally, move the cc-option check to Kconfig so that the check is > done at configuration time, rather than build time, as builds with no > configuration change will be quicker because the cc-option call will not > need to happen in those instances. > > Suggested-by: Nick Desaulniers > Signed-off-by: Nathan Chancellor > --- > > v1 -> v2: https://lore.kernel.org/r/20220120214001.1879469-2-nathan@kernel.org/ > > * Move cc-option call to Kconfig (Nick). > * Also apply to loongson2ef, even though this will not currently build > with clang. > > arch/mips/Kconfig | 4 ++++ > arch/mips/loongson2ef/Platform | 3 ++- > arch/mips/loongson64/Platform | 3 ++- > 3 files changed, 8 insertions(+), 2 deletions(-) applied to mips-next. Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]