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 71C382628C; Mon, 23 Jun 2025 21:23:23 +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=1750713803; cv=none; b=Sb5O84TsBAhbbZqaN1L8ILcYqVD2KhMXsk9JprdMBqc1nMhC7om7yYndoDdVfhYN1F2vr3HnQ4dbn5MY/h3qqzFg4oKsT8If2/BuPDpJKz1mPM56xKxXyFxrLPpD95Qo2R7k+N8jU+XjeQ52FqdGpOeV6O1wrb2DJ8JpucCeji0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750713803; c=relaxed/simple; bh=lmaAhbmgNfzwzplXTaud80kN9O0sv/sGAM3tzXBgXVc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Dl1g/qKbBR5vXBx2SlCIP3GSHELB1GeEvtWOcW/TM1nYugXGz1QckilG6TCtx376Up4Ef019yMgtPOJAjiBfdwW7QaOdeePvWXTwnjlczz1aEg10RNZAYMQnvX5C5SqHjUMNy81V/ZOX393XOPwVh5XcSv2775GShXd8O1jelY4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=vUEjjULU; 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="vUEjjULU" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 08D6BC4CEEA; Mon, 23 Jun 2025 21:23:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750713803; bh=lmaAhbmgNfzwzplXTaud80kN9O0sv/sGAM3tzXBgXVc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vUEjjULUhJYMd58Rox/mgGDPogWsfiroUGUC7gENixkpq9ua0CPdBPAUXXVA+eA1y UBf6s52dZbT2MmLVSAPhOZRSjJbjjSk+PMPp9U5SBWa2mIG+HY7q2I6IBwy4kYNfmr qUeIJKC697WvnPlscfarNW+mO7gZDit6mBev1j3A= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Masahiro Yamada , Nathan Chancellor , Nick Desaulniers , Linux Kernel Functional Testing , Anders Roxell Subject: [PATCH 5.15 168/411] x86/boot/compressed: prefer cc-option for CFLAGS additions Date: Mon, 23 Jun 2025 15:05:12 +0200 Message-ID: <20250623130637.924163381@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-Transfer-Encoding: 8bit 5.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Nick Desaulniers commit 994f5f7816ff963f49269cfc97f63cb2e4edb84f upstream. as-option tests new options using KBUILD_CFLAGS, which causes problems when using as-option to update KBUILD_AFLAGS because many compiler options are not valid assembler options. This will be fixed in a follow up patch. Before doing so, move the assembler test for -Wa,-mrelax-relocations=no from using as-option to cc-option. Link: https://lore.kernel.org/llvm/CAK7LNATcHt7GcXZ=jMszyH=+M_LC9Qr6yeAGRCBbE6xriLxtUQ@mail.gmail.com/ Suggested-by: Masahiro Yamada Reviewed-by: Nathan Chancellor Tested-by: Nathan Chancellor Signed-off-by: Nick Desaulniers Signed-off-by: Nathan Chancellor 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/x86/boot/compressed/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/arch/x86/boot/compressed/Makefile +++ b/arch/x86/boot/compressed/Makefile @@ -50,7 +50,7 @@ KBUILD_CFLAGS += $(call cc-option,-fmacr KBUILD_CFLAGS += -fno-asynchronous-unwind-tables KBUILD_CFLAGS += -D__DISABLE_EXPORTS # Disable relocation relaxation in case the link is not PIE. -KBUILD_CFLAGS += $(call as-option,-Wa$(comma)-mrelax-relocations=no) +KBUILD_CFLAGS += $(call cc-option,-Wa$(comma)-mrelax-relocations=no) KBUILD_CFLAGS += -include $(srctree)/include/linux/hidden.h # sev.c indirectly inludes inat-table.h which is generated during