From: Johannes Thumshirn Date: Wed, 30 Aug 2017 14:04:13 +0000 (+0200) Subject: Kbuild: enable -Wunused-macros warning for "make W=2" X-Git-Tag: v4.14-rc1~23^2~3 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;ds=sidebyside;h=de8cf95047cfe06d0bc3b7bbbe4fd337d47da2c7;p=linux-2.6-block.git Kbuild: enable -Wunused-macros warning for "make W=2" We have lots of dead defines and macros in drivers, lets offer users a way to detect and eventually remove them. Signed-off-by: Johannes Thumshirn Signed-off-by: Masahiro Yamada --- diff --git a/scripts/Makefile.extrawarn b/scripts/Makefile.extrawarn index fb3522fd8702..ae8a1357d01d 100644 --- a/scripts/Makefile.extrawarn +++ b/scripts/Makefile.extrawarn @@ -37,6 +37,7 @@ warning-2 += $(call cc-option, -Wlogical-op) warning-2 += $(call cc-option, -Wmissing-field-initializers) warning-2 += $(call cc-option, -Wsign-compare) warning-2 += $(call cc-option, -Wmaybe-uninitialized) +warning-2 += $(call cc-option, -Wunused-macros) warning-3 := -Wbad-function-cast warning-3 += -Wcast-qual