Messages in this thread Patch in this message |  | | From | Michael Ellerman <> | Subject | [PATCH] lib: Make SECTION_MISMATCH_WARN_ONLY depend on DEBUG_SECTION_MISMATCH | Date | Thu, 5 Apr 2018 20:00:55 +1000 |
| |
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
|  |