Merge branch 'locking-rwsem-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[linux-2.6-block.git] / lib / Kconfig.ubsan
index e07c1ba9ba1339a80dac79d59255d80d600b096e..39494af9a84ac89e6fbbc1f25d9407c70d19e66f 100644 (file)
@@ -13,6 +13,11 @@ config UBSAN_SANITIZE_ALL
        bool "Enable instrumentation for the entire kernel"
        depends on UBSAN
        depends on ARCH_HAS_UBSAN_SANITIZE_ALL
+
+       # We build with -Wno-maybe-uninitilzed, but we still want to
+       # use -Wmaybe-uninitilized in allmodconfig builds.
+       # So dependsy bellow used to disable this option in allmodconfig
+       depends on !COMPILE_TEST
        default y
        help
          This option activates instrumentation for the entire kernel.