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.

kbuild: Turn a couple more of clang's unused option warnings into errors

Currently, these warnings are hidden with -Qunused-arguments in
KBUILD_CPPFLAGS. Once that option is removed, these warnings should be
turned into hard errors to make unconditionally added but unsupported
flags for the current compilation mode or target obvious due to a failed
build; otherwise, the warnings might just be ignored if the build log is
not checked.

Link: https://github.com/ClangBuiltLinux/linux/issues/1587
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.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>

authored by

Nathan Chancellor and committed by
Masahiro Yamada
db1547c5 7db038d9

+2
+2
scripts/Makefile.clang
··· 36 36 # so they can be implemented or wrapped in cc-option. 37 37 CLANG_FLAGS += -Werror=unknown-warning-option 38 38 CLANG_FLAGS += -Werror=ignored-optimization-argument 39 + CLANG_FLAGS += -Werror=option-ignored 40 + CLANG_FLAGS += -Werror=unused-command-line-argument 39 41 KBUILD_CFLAGS += $(CLANG_FLAGS) 40 42 KBUILD_AFLAGS += $(CLANG_FLAGS) 41 43 export CLANG_FLAGS