Skip to content

Commit 66bfe49

Browse files
nathanchancemasahir0y
authored andcommitted
s390/purgatory: Remove unused '-MD' and unnecessary '-c' flags
When clang's -Qunused-arguments is dropped from KBUILD_CPPFLAGS, it warns while building objects in the purgatory folder: clang-16: error: argument unused during compilation: '-MD' [-Werror,-Wunused-command-line-argument] '-MMD' is always passed to the preprocessor via c_flags, even when KBUILD_CFLAGS is overridden in a folder, so clang complains the addition of '-MD' will be unused. Remove '-MD' to clear up this warning, as it is unnecessary with '-MMD'. Additionally, '-c' is also unnecessary, remove it while in the area. Signed-off-by: Nathan Chancellor <nathan@kernel.org> Acked-by: Heiko Carstens <hca@linux.ibm.com> Reviewed-by: Sven Schnelle <svens@linux.ibm.com> Tested-by: Linux Kernel Functional Testing <lkft@linaro.org> Tested-by: Anders Roxell <anders.roxell@linaro.org> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
1 parent fd8589d commit 66bfe49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/s390/purgatory/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ KCSAN_SANITIZE := n
2424
KBUILD_CFLAGS := -fno-strict-aliasing -Wall -Wstrict-prototypes
2525
KBUILD_CFLAGS += -Wno-pointer-sign -Wno-sign-compare
2626
KBUILD_CFLAGS += -fno-zero-initialized-in-bss -fno-builtin -ffreestanding
27-
KBUILD_CFLAGS += -c -MD -Os -m64 -msoft-float -fno-common
27+
KBUILD_CFLAGS += -Os -m64 -msoft-float -fno-common
2828
KBUILD_CFLAGS += -fno-stack-protector
2929
KBUILD_CFLAGS += $(CLANG_FLAGS)
3030
KBUILD_CFLAGS += $(call cc-option,-fno-PIE)

0 commit comments

Comments
 (0)