Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

powerpc: Fix fatal warnings flag for LLVM's integrated assembler

When building with LLVM_IAS=1, there is an error because
'-fatal-warnings' is not recognized as a valid flag:

clang: error: unsupported argument '-fatal-warnings' to option '-Wa,'

Use the double hyphen version of the flag, '--fatal-warnings', which
works with both the GNU assembler and LLVM's integrated assembler.

Fixes: 608d4a5ca563 ("powerpc: Error on assembly warnings")
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Reviewed-by: Justin Stitt <justinstitt@google.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20240405-ppc-fix-wa-fatal-warnings-clang-v1-1-bdcd969f2ef0@kernel.org

authored by

Nathan Chancellor and committed by
Michael Ellerman
8884fc91 bfe51886

+2 -2
+2 -2
arch/powerpc/Kbuild
··· 1 1 # SPDX-License-Identifier: GPL-2.0 2 - subdir-ccflags-$(CONFIG_PPC_WERROR) := -Werror -Wa,-fatal-warnings 3 - subdir-asflags-$(CONFIG_PPC_WERROR) := -Wa,-fatal-warnings 2 + subdir-ccflags-$(CONFIG_PPC_WERROR) := -Werror -Wa,--fatal-warnings 3 + subdir-asflags-$(CONFIG_PPC_WERROR) := -Wa,--fatal-warnings 4 4 5 5 obj-y += kernel/ 6 6 obj-y += mm/