ubsan: fix tree-wide -Wmaybe-uninitialized false positives
authorAndrey Ryabinin <aryabinin@virtuozzo.com>
Tue, 22 Mar 2016 21:27:45 +0000 (14:27 -0700)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Wed, 14 Dec 2016 04:50:54 +0000 (13:50 +0900)
commita3291e7200f9deab6ca77f44e89d279292a2a7c6
treee0230f42c48e637333b1eccc2ff6167a2e255064
parent294a8532510a0fbd49485a4aca35ed5dd07d6d21
ubsan: fix tree-wide -Wmaybe-uninitialized false positives

-fsanitize=* options makes GCC less smart than usual and increase number
of 'maybe-uninitialized' false-positives. So this patch does two things:

 * Add -Wno-maybe-uninitialized to CFLAGS_UBSAN which will disable all
   such warnings for instrumented files.

 * Remove CONFIG_UBSAN_SANITIZE_ALL from all[yes|mod]config builds. So
   the all[yes|mod]config build goes without -fsanitize=* and still with
   -Wmaybe-uninitialized.

Signed-off-by: Andrey Ryabinin <aryabinin@virtuozzo.com>
Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
[backport from mainline for UBSAN]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: Ia32d029540fcb5ebd19a3ac447a3b6333a173f84
lib/Kconfig.ubsan
scripts/Makefile.ubsan