]> git.baikalelectronics.ru Git - kernel.git/commit
kbuild: Demote 'sign-compare' warning to W=2
authorLee Jones <lee.jones@linaro.org>
Tue, 12 Jan 2016 14:24:18 +0000 (14:24 +0000)
committerMichal Marek <mmarek@suse.com>
Tue, 12 Jan 2016 15:07:03 +0000 (16:07 +0100)
commit2d5fd25fcdd3a8fb2adf80533d1e29eeed7618e6
tree322eaed9049b683a24d2ae8192c1d6e59e227cb8
parent32a801a049046844dadce3c0c95e362787127898
kbuild: Demote 'sign-compare' warning to W=2

Ideally, a kernel compile with W=1 enabled should complete cleanly;
however, when we run one currently we are presented with ~25k warnings.
'sign-compare' accounts for ~22k of those ~25k.

In this patch we're demoting 'sign-compare' warnings to W=2, with a view
to fixing the remaining 3k W=1 warnings required for a clean build.

Arnd adds:
  "As per our discussion, I'd add that this was inadvertedly introduced
   by Behan when he moved the clang specific warnings into an ifdef block
   and did not notice that -Wsign-compare was interpreted by both gcc
   and clang.

   Earlier, it was introduced in just the same way by Jan-Simon as part
   of e20507ab9906 ("kbuild: LLVMLinux: Adapt warnings for compilation
   with clang")."

Acked-by: Arnd Bergmann <arnd@arndb.de>
Fixes: f0ad154eb997 ("kbuild, LLVMLinux: Supress warnings unless W=1-3")
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Michal Marek <mmarek@suse.com>
scripts/Makefile.extrawarn