Skip to content

Fix build due to clang -Qunused-arguments change

Nathan Chancellor llvm stable 1 version Applied

Status from this message: This is a note to let you know that I've just added the patch titled

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 14 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/6ARM: 9448/1: Use an absolute path to unified.h in KBUILD_AFLAGSarch/arm/Makefile+1 -12 replies
2/6kbuild: Update assembler calls to use proper flags and language targetscripts/Kbuild.include+4 -43 replies
3/6mips: Include KBUILD_CPPFLAGS in CHECKFLAGS invocationarch/mips/Makefile+1 -12 replies
4/6kbuild: Add CLANG_FLAGS to as-instrscripts/Kbuild.include+1 -12 replies
5/6kbuild: add $(CLANG_FLAGS) to KBUILD_CPPFLAGSMakefile+1 -23 replies
6/6kbuild: Add KBUILD_CPPFLAGS to as-option invocationscripts/Kbuild.include+1 -12 replies

Reviews trailers per patch

2 of 6 patches have a Reviewed-by or Acked-by.

PatchMasahiro YamadaLinux Kernel Functional TestingAnders RoxellNathan ChancellorNaresh Kamboju
1/6R-b R-b
2/6T-b T-b T-b T-b T-b T-b
3/6
4/6
5/6R-b T-b R-b T-b
6/6T-b T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 5 reviewers.

Read the v1 thread

Cover letter [PATCH 5.4 0/6] Fix build due to clang -Qunused-arguments change

This is an updated version of [1], just for 5.4, which was waiting on commit 87c4e1459e80 ("ARM: 9448/1: Use an absolute path to unified.h in KBUILD_AFLAGS") to avoid regressing the build [2].

These changes are needed there due to an upstream LLVM change [3] that changes the behavior of -Qunused-arguments with unknown target options, which is only used in 6.1 and older since I removed it in commit 8d9acfce3332 ("kbuild: Stop using '-Qunused-arguments' with clang") in 6.3.

Please let me know if there are any issues.

[1]: https://lore.kernel.org/20250604233141.GA2374479@ax162/
[2]: https://lore.kernel.org/CACo-S-1qbCX4WAVFA63dWfHtrRHZBTyyr2js8Lx=Az03XHTTHg@mail.gmail.com/
[3]: https://github.com/llvm/llvm-project/commit/a4b2f4a72aa9b4655ecc723838830e0a7f29c9ca

Masahiro Yamada (1):
kbuild: add $(CLANG_FLAGS) to KBUILD_CPPFLAGS

Nathan Chancellor (4):
ARM: 9448/1: Use an absolute path to unified.h in KBUILD_AFLAGS
mips: Include KBUILD_CPPFLAGS in CHECKFLAGS invocation
kbuild: Add CLANG_FLAGS to as-instr
kbuild: Add KBUILD_CPPFLAGS to as-option invocation

Nick Desaulniers (1):
kbuild: Update assembler calls to use proper flags and language target

 Makefile               | 3 +--
 arch/arm/Makefile      | 2 +-
 arch/mips/Makefile     | 2 +-
 scripts/Kbuild.include | 8 ++++----
 4 files changed, 7 insertions(+), 8 deletions(-)

base-commit: 04b7726c3cdd2fb4da040c2b898bcf405ed607bd

Signature · 1 line
2.50.1