linux-kbuild.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] Kbuild: enable -Wunused-macros warning for "make W=2"
@ 2017-08-30 14:04 Johannes Thumshirn
  2017-08-31 23:52 ` Masahiro Yamada
  0 siblings, 1 reply; 2+ messages in thread
From: Johannes Thumshirn @ 2017-08-30 14:04 UTC (permalink / raw)
  To: Masahiro Yamada, Michal Marek
  Cc: Linux Kernel Mailinglist, linux-kbuild, Johannes Thumshirn

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 <jthumshirn@suse.de>
---

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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH v2] Kbuild: enable -Wunused-macros warning for "make W=2"
  2017-08-30 14:04 [PATCH v2] Kbuild: enable -Wunused-macros warning for "make W=2" Johannes Thumshirn
@ 2017-08-31 23:52 ` Masahiro Yamada
  0 siblings, 0 replies; 2+ messages in thread
From: Masahiro Yamada @ 2017-08-31 23:52 UTC (permalink / raw)
  To: Johannes Thumshirn
  Cc: Michal Marek, Linux Kernel Mailinglist, Linux Kbuild mailing list

2017-08-30 23:04 GMT+09:00 Johannes Thumshirn <jthumshirn@suse.de>:
> 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 <jthumshirn@suse.de>
> ---
>
> Notes:
>     Changes to v1:
>     * Change from W=1 to W=2
>

Applied to linux-kbuild.  Thanks.

-- 
Best Regards
Masahiro Yamada

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-08-31 23:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-30 14:04 [PATCH v2] Kbuild: enable -Wunused-macros warning for "make W=2" Johannes Thumshirn
2017-08-31 23:52 ` Masahiro Yamada

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).