Path: csiph.com!feeder.erje.net!2.eu.feeder.erje.net!proxad.net!feeder1-2.proxad.net!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod From: Johannes Thumshirn Newsgroups: linux.kernel Subject: [PATCH v2] Kbuild: enable -Wunused-macros warning for "make W=2" Date: Wed, 30 Aug 2017 16:10:02 +0200 Message-ID: X-Mailer: git-send-email 2.12.3 Sender: robomod@news.nic.it List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Approved: robomod@news.nic.it Lines: 27 Organization: linux.* mail to news gateway X-Original-Cc: Linux Kernel Mailinglist , linux-kbuild@vger.kernel.org, Johannes Thumshirn X-Original-Date: Wed, 30 Aug 2017 16:04:13 +0200 X-Original-Message-ID: <20170830140413.9333-1-jthumshirn@suse.de> X-Original-Sender: linux-kernel-owner@vger.kernel.org Xref: csiph.com linux.kernel:1723359 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 --- Notes: Changes to v1: * Change from W=1 to W=2 scripts/Makefile.extrawarn | 1 + 1 file changed, 1 insertion(+) 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 -- 2.12.3