lkml.org 
[lkml]   [2018]   [Apr]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] lib: Make SECTION_MISMATCH_WARN_ONLY depend on DEBUG_SECTION_MISMATCH
Date
CONFIG_SECTION_MISMATCH_WARN_ONLY says to turn the errors enabled by
CONFIG_DEBUG_SECTION_MISMATCH into warnings. As such there's no need
to set the former if the latter is not enabled.

Currently there's no connection between the two, meaning we can end up
with this slightly confusing situation:

# CONFIG_DEBUG_SECTION_MISMATCH is not set
CONFIG_SECTION_MISMATCH_WARN_ONLY=y

So make CONFIG_SECTION_MISMATCH_WARN_ONLY depend on
CONFIG_DEBUG_SECTION_MISMATCH.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
---
lib/Kconfig.debug | 1 +
1 file changed, 1 insertion(+)

diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index 64155e310a9f..39209e951010 100644
--- a/lib/Kconfig.debug
+++ b/lib/Kconfig.debug
@@ -337,6 +337,7 @@ config DEBUG_SECTION_MISMATCH

config SECTION_MISMATCH_WARN_ONLY
bool "Make section mismatch errors non-fatal"
+ depends on DEBUG_SECTION_MISMATCH
default y
help
If you say N here, the build process will fail if there are any
--
2.14.1
\
 
 \ /
  Last update: 2018-04-05 12:01    [W:0.043 / U:3.004 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site