mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jens Axboe <axboe@kernel.dk>
To: Arnd Bergmann <arnd@arndb.de>
Cc: Hannes Reinecke <hare@suse.de>, Shaohua Li <shli@fb.com>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] null_blk: remove explicit 'select FAULT_INJECTION'
Date: Thu, 11 Jan 2018 07:57:53 -0700	[thread overview]
Message-ID: <18843cd3-786f-b6c1-4d12-b89403cffe5c@kernel.dk> (raw)
In-Reply-To: <20180111103227.1297305-1-arnd@arndb.de>

On 1/11/18 3:31 AM, Arnd Bergmann wrote:
> Selecting FAULT_INJECTION causes a Kconfig warning when CONFIG_DEBUG_KERNEL
> is not set:
> 
> warning: (BLK_DEV_NULL_BLK && DRM_I915_SELFTEST) selects FAULT_INJECTION which has unmet direct dependencies (DEBUG_KERNEL)
> 
> The other drivers that use FAULT_INJECTION tend to have a separate
> Kconfig symbol for turning on that feature, so let's do the same
> thing here. This may add a bit more complexity than we like, but
> it avoids the warning and is more consistent with the rest of the
> kernel.

Thanks Arnd, I'll get this applied.

> diff --git a/drivers/block/Kconfig b/drivers/block/Kconfig
> index 622d9a2c8dae..b795d0ca74eb 100644
> --- a/drivers/block/Kconfig
> +++ b/drivers/block/Kconfig
> @@ -19,7 +19,10 @@ if BLK_DEV
>  config BLK_DEV_NULL_BLK
>  	tristate "Null test block driver"
>  	select CONFIGFS_FS
> -	select FAULT_INJECTION
> +
> +config BLK_DEV_NULL_BLK_FAULT_INJECTION
> +	bool "Support fault injection for Nll test block driver"
> +	depends on BLK_DEV_NULL_BLK && FAULT_INJECTION

Will fixup that typo.

-- 
Jens Axboe

      reply	other threads:[~2018-01-11 14:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-11 10:31 Arnd Bergmann
2018-01-11 14:57 ` Jens Axboe [this message]

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=18843cd3-786f-b6c1-4d12-b89403cffe5c@kernel.dk \
    --to=axboe@kernel.dk \
    --cc=arnd@arndb.de \
    --cc=hare@suse.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=shli@fb.com \
    /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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®