From 1275ec0f1d31c4ac57b73b318bdc45151d99e8dc Mon Sep 17 00:00:00 2001 From: Sedat Dilek Date: Wed, 28 Aug 2019 16:27:13 +0200 Subject: [PATCH 1/2] kbuild: Improve extrawarn documentation --- Documentation/kbuild/kbuild.rst | 10 ++++++++-- scripts/Makefile.extrawarn | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/Documentation/kbuild/kbuild.rst b/Documentation/kbuild/kbuild.rst index 62f9d86c082c..f0f1c475d7fa 100644 --- a/Documentation/kbuild/kbuild.rst +++ b/Documentation/kbuild/kbuild.rst @@ -243,8 +243,14 @@ To get all available archs you can also specify all. E.g.:: KBUILD_ENABLE_EXTRA_GCC_CHECKS ------------------------------ -If enabled over the make command line with "W=1", it turns on additional -gcc -W... options for more extensive build-time checking. +If enabled over the make command line with "W=...", it turns on additional +compiler warning options like -Wmissing-declarations for more extensive +build-time checking. For more details see . + +W=1 - warnings that may be relevant and does not occur too often +W=1 - also stops suppressing some warnings +W=2 - warnings that occur quite often but may still be relevant +W=3 - the more obscure warnings, can most likely be ignored KBUILD_BUILD_TIMESTAMP ---------------------- diff --git a/scripts/Makefile.extrawarn b/scripts/Makefile.extrawarn index 3af1770497fd..6770f8da4e6d 100644 --- a/scripts/Makefile.extrawarn +++ b/scripts/Makefile.extrawarn @@ -32,7 +32,7 @@ KBUILD_CPPFLAGS += -DKBUILD_EXTRA_WARN1 else -# W=1 also stops suppressing some warnings +# W=1 - also stops suppressing some warnings ifdef CONFIG_CC_IS_CLANG KBUILD_CFLAGS += -Wno-initializer-overrides -- 2.20.1