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 0729270838; Mon, 23 Jun 2025 21:11:02 +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=1750713062; cv=none; b=mPlzJvBhpYpXFLerZWAAfGtm91PzPFJwAxKXi8yWMKJX1xM7XQxSIwn6btJ1nx7PKdGbdb3l2SrqBlwkZ2P3k3rtp8qgHXfXdrKGj6e+GI+Fs5MxKv9HBglieeNDQ47e4pm/88rlH/3jKQRBUW42o6qeMiaD8sIbPcSUXRC06Qc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750713062; c=relaxed/simple; bh=mnvCxgnpekIVuWY/gJuvOiuR68pEdVdvYHX0VVZW8f8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=cyLWoSZ8hXNGmCKzEmsPSJDrrHT4xAbfbFTNdVgD2dVIMZ0pJHeOc8fE28MOBd7n5AUETbtwxwIz6UkegedSldvKrR2rw7JPBrSH8HHr9mmkMsYFsIdCbFXSXj0NTEA1raBwMmIoIB3aMF9YIoBKMx3nhF/Pr+845L5HK8ozuY0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=kKsUHOay; 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="kKsUHOay" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 91BADC4CEEA; Mon, 23 Jun 2025 21:11:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750713061; bh=mnvCxgnpekIVuWY/gJuvOiuR68pEdVdvYHX0VVZW8f8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kKsUHOayXn8CH974cYqWe1Cl9BA2jE58SZLzLKkFTDnKXrLHKmpDw9FSvV7/eruqB B2L9Y7aWdEku+X1qZRnewcSFbrUjpqpF2s6vUeS7NZcqFW2+36+6s5VTEa7qPyhSMQ 6Be4v4EQAydFeDHFqYauNFKDyddZ9NzZG3bCgN/k= 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.10 143/355] MIPS: Prefer cc-option for additions to cflags Date: Mon, 23 Jun 2025 15:05:44 +0200 Message-ID: <20250623130631.012601632@linuxfoundation.org> X-Mailer: git-send-email 2.50.0 In-Reply-To: <20250623130626.716971725@linuxfoundation.org> References: <20250623130626.716971725@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.10-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