Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754524AbeAKO55 (ORCPT + 1 other); Thu, 11 Jan 2018 09:57:57 -0500 Received: from mail-it0-f68.google.com ([209.85.214.68]:46169 "EHLO mail-it0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752097AbeAKO54 (ORCPT ); Thu, 11 Jan 2018 09:57:56 -0500 X-Google-Smtp-Source: ACJfBovwnpJir4zNVWTfIw5vnuienG9q5ha4HkZXEmCw7eqlmjKVmBn85iNVllAEIfvjky62oeSRmg== Subject: Re: [PATCH] null_blk: remove explicit 'select FAULT_INJECTION' To: Arnd Bergmann Cc: Hannes Reinecke , Shaohua Li , linux-kernel@vger.kernel.org References: <20180111103227.1297305-1-arnd@arndb.de> From: Jens Axboe Message-ID: <18843cd3-786f-b6c1-4d12-b89403cffe5c@kernel.dk> Date: Thu, 11 Jan 2018 07:57:53 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:58.0) Gecko/20100101 Thunderbird/58.0 MIME-Version: 1.0 In-Reply-To: <20180111103227.1297305-1-arnd@arndb.de> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: 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