LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Michael Ellerman <mpe@ellerman.id.au>
To: yamada.masahiro@socionext.com
Cc: akpm@linux-foundation.org, joe@perches.com, linux-kernel@vger.kernel.org
Subject: [PATCH] lib: Make SECTION_MISMATCH_WARN_ONLY depend on DEBUG_SECTION_MISMATCH
Date: Thu,  5 Apr 2018 20:00:55 +1000	[thread overview]
Message-ID: <20180405100055.26585-1-mpe@ellerman.id.au> (raw)

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

             reply	other threads:[~2018-04-05 10:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-05 10:00 Michael Ellerman [this message]
2018-04-05 12:37 ` Michael Ellerman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180405100055.26585-1-mpe@ellerman.id.au \
    --to=mpe@ellerman.id.au \
    --cc=akpm@linux-foundation.org \
    --cc=joe@perches.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=yamada.masahiro@socionext.com \
    --subject='Re: [PATCH] lib: Make SECTION_MISMATCH_WARN_ONLY depend on DEBUG_SECTION_MISMATCH' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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).