]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
powerpc: Fix fatal warnings flag for LLVM's integrated assembler
authorNathan Chancellor <nathan@kernel.org>
Fri, 5 Apr 2024 19:31:22 +0000 (12:31 -0700)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 8 Apr 2024 06:06:41 +0000 (16:06 +1000)
commit8884fc918f6aee220f9b41806974508bd0213aca
tree0c04154034d4bfa97d30b59abecfeace040453ad
parentbfe51886ca544956eb4ff924d1937ac01d0ca9c8
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
arch/powerpc/Kbuild