Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1723359 > unrolled thread

[PATCH v2] Kbuild: enable -Wunused-macros warning for "make W=2"

Started byJohannes Thumshirn <jthumshirn@suse.de>
First post2017-08-30 16:10 +0200
Last post2017-09-01 02:00 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH v2] Kbuild: enable -Wunused-macros warning for "make W=2" Johannes Thumshirn <jthumshirn@suse.de> - 2017-08-30 16:10 +0200
    Re: [PATCH v2] Kbuild: enable -Wunused-macros warning for "make W=2" Masahiro Yamada <yamada.masahiro@socionext.com> - 2017-09-01 02:00 +0200

#1723359 — [PATCH v2] Kbuild: enable -Wunused-macros warning for "make W=2"

FromJohannes Thumshirn <jthumshirn@suse.de>
Date2017-08-30 16:10 +0200
Subject[PATCH v2] Kbuild: enable -Wunused-macros warning for "make W=2"
Message-ID<ukbQS-R3-7@gated-at.bofh.it>
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

[toc] | [next] | [standalone]


#1724694

FromMasahiro Yamada <yamada.masahiro@socionext.com>
Date2017-09-01 02:00 +0200
Message-ID<ukHxo-45L-19@gated-at.bofh.it>
In reply to#1723359
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

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web