Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1347476pxb; Fri, 21 Jan 2022 16:07:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJxEZsfNnP1VLkJVGqNBnjfpvkeNhZiWdoy6/VbW4+gKvZ7DBbOQdP31bhgYT1JgSwkFvkpC X-Received: by 2002:a17:90a:5d07:: with SMTP id s7mr2991494pji.226.1642810039112; Fri, 21 Jan 2022 16:07:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642810039; cv=none; d=google.com; s=arc-20160816; b=aTC1vRSctJKUkp9/qkxe9ZNs7VM526IwPZKUiHUptnfvHeV5OXcs4t/wbCvHKn8t7n Alo6aI0ldPsjegaDdUzeJys7m6822U1hcmm1bzVBf8+4oS6QOie2JaiiWKExerOwumWy OA/FiLROOvptoULdlp43RYV1izsbX1SzuiA0TXZ8Fr7R8YEukExREIM2qCrce49rbNT3 JqbUCxU1tAYut0w2h+F4bFIpzakjRa2FxSqg/0BtCjI87agHwL/JRiGmRjlCdY8JRYq7 pU8+VsuGkh6XmX2TvvBC0jsng4nTgVL2yEBclDEj0aIERvdyGyQNWDdN3CRK/If/nh5W tJ7Q== 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=2l8nxZXbcYVQ8Gu40qtwBsP/ibQZvldTGcdx3y5AkUU=; b=ZyFTLx4C51sa6Qq7sTRhdRdNm7sdEO59HhApxWpgz3T27SJceKNg4pTWGaUTokGx3R NI7IuSeqfEqJcwnkRDU2gObS0N+TocTkEg6c31Cyh0FVWswWAuhsdIeYR53PYkBpkxGy frCej9SlbdbaEAQKfd4oVbI7Rcq34dvxGgv28mBydb7ZNFnIzHVenWlZabBNjyU//9XO QtN9+IliTFotZAc/Tq0kY7Lz6CEmvVFbyHqaBz8JTOHjaE6OwQwzwd1TH9l/N3n460ay ukwEQuwvMTzhbEAVEUMu3461pSWPA0SZ4QPoWI4VcdiPC/6jsR155m3iYyYhyNHAjLWh jrHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JCEpVAnx; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l11si1323096pga.8.2022.01.21.16.07.07; Fri, 21 Jan 2022 16:07:19 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JCEpVAnx; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377973AbiATVkS (ORCPT + 99 others); Thu, 20 Jan 2022 16:40:18 -0500 Received: from ams.source.kernel.org ([145.40.68.75]:34748 "EHLO ams.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231373AbiATVkR (ORCPT ); Thu, 20 Jan 2022 16:40:17 -0500 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 ams.source.kernel.org (Postfix) with ESMTPS id E0B9EB81E66; Thu, 20 Jan 2022 21:40:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DB7A2C340E3; Thu, 20 Jan 2022 21:40:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1642714814; bh=RK4Wx98CLevcla/neFB51ar1oynVV09cZXlwV/iBl0I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JCEpVAnxHTlYlDlnSydVPYCOExOZSkkZhdu2Z+23XnUf2NGCzgQvV5rbNiDdcHgkc zR0GdGJlKW0vIpkdwUgb3P940t99p88zslzsE237+o5IlakNO6DtK8+8KOxlLxb5I/ 5CY5z8mHvg5Dx7Ro3l87/0hpuLWuZB3T0q1/3bir7TRkUjw7BFhBlhK7V389inaArG IOzZd5LK6sJkwRfeznFpz1bPRCmWzbbqpjPP+Mid/STD729IGJOmuecNbzNssv0BQ8 uPmY9Ogw+6Kl4Tre5MmlD8DDuMCPZbi8ef2uC+yiZI8pdWCabxx4CE0yvwAmhY4PQg 18KSRheaLuDGw== From: Nathan Chancellor To: Huacai Chen , Jiaxun Yang , Thomas Bogendoerfer Cc: Nick Desaulniers , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, Nathan Chancellor Subject: [PATCH 2/2] MIPS: Loongson64: Wrap -mno-branch-likely with cc-option Date: Thu, 20 Jan 2022 14:40:01 -0700 Message-Id: <20220120214001.1879469-2-nathan@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220120214001.1879469-1-nathan@kernel.org> References: <20220120214001.1879469-1-nathan@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 the flag in cc-option so that it does not cause cc-option to fail, which can cause randconfigs to be really noisy. Signed-off-by: Nathan Chancellor --- arch/mips/loongson64/Platform | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/mips/loongson64/Platform b/arch/mips/loongson64/Platform index 981d3abc150e..acf9edc9b15d 100644 --- a/arch/mips/loongson64/Platform +++ b/arch/mips/loongson64/Platform @@ -26,5 +26,6 @@ cflags-y += $(call cc-option,-mno-loongson-mmi) # Loongson Machines' Support # -cflags-$(CONFIG_MACH_LOONGSON64) += -I$(srctree)/arch/mips/include/asm/mach-loongson64 -mno-branch-likely +cflags-$(CONFIG_MACH_LOONGSON64) += -I$(srctree)/arch/mips/include/asm/mach-loongson64 +cflags-$(CONFIG_MACH_LOONGSON64) += $(call cc-option,-mno-branch-likely) load-$(CONFIG_CPU_LOONGSON64) += 0xffffffff80200000 -- 2.34.1