From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 426971ACEDA; Mon, 23 Jun 2025 21:23:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750713835; cv=none; b=HpYgCfR//887Q8m754toXVIRJCMpbPGnpFJcf+bBv3ttZ+Cp4AOCGSPSNDsVArHq6mjZB2LRmGH/lDdi0FMWp4on7HGzLBrVpxQdCJA8IxE2ogUoV8714oEOV8K0EADczLkw5nxVbEMju+KC5cvCiQD0yJdDkdl+kg1elPbuB1w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750713835; c=relaxed/simple; bh=pVEiQ6VJ4wYR86qCTa9bLCFMvUYhTeHUbyMlzdpmXaI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=CNqUoWBCVKe4BoXKE2+3Q1vO8n4WvwPZK8EiCAAGAomVbtcuiCNfhuKWt75BjWxZkGXLvuvhkFuu21ikV8UlI7Frze8LoqHWkzherG3P+tMidnNaxUQ8CiiMO9RQ1JjtVQJhcPOu8aLDssPKff5haAx+PXaGJnRLEFT27JWfPLY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=NpFbpdoJ; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="NpFbpdoJ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CE4E3C4CEEA; Mon, 23 Jun 2025 21:23:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750713835; bh=pVEiQ6VJ4wYR86qCTa9bLCFMvUYhTeHUbyMlzdpmXaI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NpFbpdoJSbZsBYrUVrwvJFb9lAbWMCgKjCbl6FnZr+od1/La4sckeKI0ITF+wmyKN 1zKXfbaa/Jjn/ECu7IXwaOK5/3A/4rxknExu8+bPY8drLOIwGSYKJmMqiLTwSMedM9 8TpsL9pe4q+vD3DFkVRQk8g0U0lcQDinP4SWhgqw= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Nathan Chancellor , Thomas Bogendoerfer , Nick Desaulniers , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Linux Kernel Functional Testing , Anders Roxell , Masahiro Yamada Subject: [PATCH 5.15 170/411] MIPS: Prefer cc-option for additions to cflags Date: Mon, 23 Jun 2025 15:05:14 +0200 Message-ID: <20250623130637.973151662@linuxfoundation.org> X-Mailer: git-send-email 2.50.0 In-Reply-To: <20250623130632.993849527@linuxfoundation.org> References: <20250623130632.993849527@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 5.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Nathan Chancellor commit 337ff6bb8960fdc128cabd264aaea3d42ca27a32 upstream. A future change will switch as-option to use KBUILD_AFLAGS instead of KBUILD_CFLAGS to allow clang to drop -Qunused-arguments, which may cause issues if the flag being tested requires a flag previously added to KBUILD_CFLAGS but not KBUILD_AFLAGS. Use cc-option for cflags additions so that the flags are tested properly. Signed-off-by: Nathan Chancellor Acked-by: Thomas Bogendoerfer Reviewed-by: Nick Desaulniers Reviewed-by: Philippe Mathieu-Daudé Tested-by: Linux Kernel Functional Testing Tested-by: Anders Roxell Signed-off-by: Masahiro Yamada Signed-off-by: Nathan Chancellor Signed-off-by: Greg Kroah-Hartman --- arch/mips/Makefile | 2 +- arch/mips/loongson2ef/Platform | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) --- a/arch/mips/Makefile +++ b/arch/mips/Makefile @@ -153,7 +153,7 @@ cflags-y += -fno-stack-check # # Avoid this by explicitly disabling that assembler behaviour. # -cflags-y += $(call as-option,-Wa$(comma)-mno-fix-loongson3-llsc,) +cflags-y += $(call cc-option,-Wa$(comma)-mno-fix-loongson3-llsc,) # # CPU-dependent compiler/assembler options for optimization. --- a/arch/mips/loongson2ef/Platform +++ b/arch/mips/loongson2ef/Platform @@ -28,7 +28,7 @@ cflags-$(CONFIG_CPU_LOONGSON2F) += \ # binutils does not merge support for the flag then we can revisit & remove # this later - for now it ensures vendor toolchains don't cause problems. # -cflags-$(CONFIG_CPU_LOONGSON2EF) += $(call as-option,-Wa$(comma)-mno-fix-loongson3-llsc,) +cflags-$(CONFIG_CPU_LOONGSON2EF) += $(call cc-option,-Wa$(comma)-mno-fix-loongson3-llsc,) # Enable the workarounds for Loongson2f ifdef CONFIG_CPU_LOONGSON2F_WORKAROUNDS