lib: Make SECTION_MISMATCH_WARN_ONLY depend on DEBUG_SECTION_MISMATCH
PATCH 1/1 lib: Make SECTION_MISMATCH_WARN_ONLY depend on DEBUG_SECTION_MISMATCH
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.
--- lib/Kconfig.debug | 1 + 1 file changed, 1 insertion(+)
lib/Kconfig.debug +1 -0
@@ -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
Signature · 1 line
2.14.1
Quoted 3 lines · Michael Ellerman
CONFIG_SECTION_MISMATCH_WARN_ONLYsays to turn the errors enabled byCONFIG_DEBUG_SECTION_MISMATCHinto warnings. As such there's no need to set the former if the latter is not enabled.
Wrong. I get it now.
Please ignore this patch.
cheers