aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Kconfig.debug
diff options
context:
space:
mode:
authorNicolas Boichat <drinkcat@chromium.org>2015-10-05 19:14:42 -0400
committerRusty Russell <rusty@rustcorp.com.au>2015-10-05 20:16:21 -0400
commit47490ec141b9944a8a7cbe3bec8b8f4fdaaa700b (patch)
tree250ae9e4fb5f2a956cfc1ab474ffc2872167a231 /lib/Kconfig.debug
parent74b22c465cd2b6ff4b8cec3997512ec807e6e495 (diff)
modpost: Add flag -E for making section mismatches fatal
The section mismatch warning can be easy to miss during the kernel build process. Allow it to be marked as fatal to be easily caught and prevent bugs from slipping in. Setting CONFIG_SECTION_MISMATCH_WARN_ONLY=y causes these warnings to be non-fatal, since there are a number of section mismatches when using allmodconfig on some architectures, and we do not want to break these builds by default. Signed-off-by: Nicolas Boichat <drinkcat@chromium.org> Change-Id: Ic346706e3297c9f0d790e3552aa94e5cff9897a6 Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'lib/Kconfig.debug')
-rw-r--r--lib/Kconfig.debug9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index e2894b23efb6..ebe51a34cf48 100644
--- a/lib/Kconfig.debug
+++ b/lib/Kconfig.debug
@@ -311,6 +311,15 @@ config DEBUG_SECTION_MISMATCH
311 - Enable verbose reporting from modpost in order to help resolve 311 - Enable verbose reporting from modpost in order to help resolve
312 the section mismatches that are reported. 312 the section mismatches that are reported.
313 313
314config SECTION_MISMATCH_WARN_ONLY
315 bool "Make section mismatch errors non-fatal"
316 default y
317 help
318 If you say N here, the build process will fail if there are any
319 section mismatch, instead of just throwing warnings.
320
321 If unsure, say Y.
322
314# 323#
315# Select this config option from the architecture Kconfig, if it 324# Select this config option from the architecture Kconfig, if it
316# is preferred to always offer frame pointers as a config 325# is preferred to always offer frame pointers as a config