lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20180405100055.26585-1-mpe@ellerman.id.au>
Date:   Thu,  5 Apr 2018 20:00:55 +1000
From:   Michael Ellerman <mpe@...erman.id.au>
To:     yamada.masahiro@...ionext.com
Cc:     akpm@...ux-foundation.org, joe@...ches.com,
        linux-kernel@...r.kernel.org
Subject: [PATCH] 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.

Signed-off-by: Michael Ellerman <mpe@...erman.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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ