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 07E915395 for ; Mon, 19 Jun 2023 07:51:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 59CCEC433C9; Mon, 19 Jun 2023 07:51:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1687161104; bh=EzleKTnL0D8uMdvPGKByhB9xxEU2X1/ppsgzmTCwslc=; h=Subject:To:Cc:From:Date:In-Reply-To:From; b=tV8oYCn4ANWqUtdMb9izpavUClKvK5dlSQtMq32B5thlFVnIvAY/SZA8ETLebaU3T NnzlXl4PrhvGk7TlmbQisM2AmcUEmWYF78wKwrRerurSH/3dlk3F7DyxRpSgcr+bvo 083BbIY9GKLxaJCZA3LdHn8L2PuwNsMldNXPy5Ls= Subject: Patch "x86/boot/compressed: prefer cc-option for CFLAGS additions" has been added to the 6.1-stable tree To: anders.roxell@linaro.org,gregkh@linuxfoundation.org,lkft@linaro.org,llvm@lists.linux.dev,masahiroy@kernel.org,naresh.kamboju@linaro.org,nathan@kernel.org,ndesaulniers@google.com,sashal@kernel.org Cc: From: Date: Mon, 19 Jun 2023 09:51:30 +0200 In-Reply-To: <20230612-6-1-asssembler-target-llvm-17-v1-1-75605d553401@kernel.org> Message-ID: <2023061930-washer-unstirred-b221@gregkh> Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit X-stable: commit X-Patchwork-Hint: ignore This is a note to let you know that I've just added the patch titled x86/boot/compressed: prefer cc-option for CFLAGS additions to the 6.1-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: x86-boot-compressed-prefer-cc-option-for-cflags-additions.patch and it can be found in the queue-6.1 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let know about it. >From nathan@kernel.org Wed Jun 14 20:04:41 2023 From: Nathan Chancellor Date: Wed, 14 Jun 2023 11:04:35 -0700 Subject: x86/boot/compressed: prefer cc-option for CFLAGS additions To: gregkh@linuxfoundation.org, sashal@kernel.org, ndesaulniers@google.com Cc: naresh.kamboju@linaro.org, stable@vger.kernel.org, llvm@lists.linux.dev, Masahiro Yamada , Nathan Chancellor , Linux Kernel Functional Testing , Anders Roxell Message-ID: <20230612-6-1-asssembler-target-llvm-17-v1-1-75605d553401@kernel.org> 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 Patches currently in stable-queue which might be from nathan@kernel.org are queue-6.1/riscv-purgatory-remove-pgo-flags.patch queue-6.1/powerpc-purgatory-remove-pgo-flags.patch queue-6.1/mips-move-wa-msoft-float-check-from-as-option-to-cc-option.patch queue-6.1/kexec-support-purgatories-with-.text.hot-sections.patch queue-6.1/mips-prefer-cc-option-for-additions-to-cflags.patch queue-6.1/x86-purgatory-remove-pgo-flags.patch queue-6.1/x86-boot-compressed-prefer-cc-option-for-cflags-additions.patch queue-6.1/kbuild-update-assembler-calls-to-use-proper-flags-and-language-target.patch