modpost: Add flag -E for making section mismatches fatal
[linux-drm-fsl-dcu.git] / lib / Kconfig.debug
index e2894b23efb60eeffef04b028a5a27a76e41e0d4..ebe51a34cf48a66da248c917ec62efdbdd9cd979 100644 (file)
@@ -311,6 +311,15 @@ config DEBUG_SECTION_MISMATCH
          - Enable verbose reporting from modpost in order to help resolve
            the section mismatches that are reported.
 
+config SECTION_MISMATCH_WARN_ONLY
+       bool "Make section mismatch errors non-fatal"
+       default y
+       help
+         If you say N here, the build process will fail if there are any
+         section mismatch, instead of just throwing warnings.
+
+         If unsure, say Y.
+
 #
 # Select this config option from the architecture Kconfig, if it
 # is preferred to always offer frame pointers as a config