LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] lib: Make SECTION_MISMATCH_WARN_ONLY depend on DEBUG_SECTION_MISMATCH
@ 2018-04-05 10:00 Michael Ellerman
2018-04-05 12:37 ` Michael Ellerman
0 siblings, 1 reply; 2+ messages in thread
From: Michael Ellerman @ 2018-04-05 10:00 UTC (permalink / raw)
To: yamada.masahiro; +Cc: akpm, joe, linux-kernel
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-04-05 12:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-05 10:00 [PATCH] lib: Make SECTION_MISMATCH_WARN_ONLY depend on DEBUG_SECTION_MISMATCH Michael Ellerman
2018-04-05 12:37 ` Michael Ellerman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).