Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752109AbeAGDZa (ORCPT + 1 other); Sat, 6 Jan 2018 22:25:30 -0500 Received: from merlin.infradead.org ([205.233.59.134]:42684 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751399AbeAGDZ2 (ORCPT ); Sat, 6 Jan 2018 22:25:28 -0500 From: Randy Dunlap Subject: Re: [PATCH] [PATCH] virtio: make VIRTIO a menuconfig to ease disabling it all To: Vincent Legoll , mst@redhat.com, jasowang@redhat.com, virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org References: <871sj7dgvr.fsf@concordia.ellerman.id.au> <20180103094918.6106-1-vincent.legoll@gmail.com> <20180103094918.6106-2-vincent.legoll@gmail.com> Message-ID: <459e2097-f20a-18f8-17d9-2d9ed011211d@infradead.org> Date: Sat, 6 Jan 2018 19:25:25 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <20180103094918.6106-2-vincent.legoll@gmail.com> 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 01/03/18 01:49, Vincent Legoll wrote: > No need to get into the submenu to disable all VIRTIO-related > config entries. > > This makes it easier to disable all VIRTIO config options > without entering the submenu. It will also enable one > to see that en/dis-abled state from the outside menu. > > This is only intended to change menuconfig UI, not change > the config dependencies. > > v2: add "default y" to avoid breaking existing configs > > Signed-off-by: Vincent Legoll For a single patch (not 2 or more in a series), please just use one email with the patch description etc. in it. No need for a cover letter. > --- > drivers/virtio/Kconfig | 8 ++++++-- > 1 file changed, 6 insertions(+), 2 deletions(-) > > diff --git a/drivers/virtio/Kconfig b/drivers/virtio/Kconfig > index cff773f15b7e..290a1875e1d3 100644 > --- a/drivers/virtio/Kconfig > +++ b/drivers/virtio/Kconfig > @@ -5,7 +5,11 @@ config VIRTIO > bus, such as CONFIG_VIRTIO_PCI, CONFIG_VIRTIO_MMIO, CONFIG_RPMSG > or CONFIG_S390_GUEST. > > -menu "Virtio drivers" > +menuconfig VIRTIO_MENU > + bool "Virtio drivers" > + default y The 2 lines above should be indented only with 1 tab. They should not line up with the help text above (help text is indented more than other Kconfig lines). After that little style thing is fixed, you can add: Reviewed-by: Randy Dunlap Tested-by: Randy Dunlap # works for me and even though this will disable the drivers that are listed immediately inside this if/endif block, there are several other drivers that select VIRTIO, so it can be slightly tricky to figure out what is causing CONFIG_VIRTIO to be enabled after having disabled CONFIG_VIRTIO_MENU. Thanks. > + > +if VIRTIO_MENU > > config VIRTIO_PCI > tristate "PCI driver for virtio devices" > @@ -79,4 +83,4 @@ config VIRTIO_MMIO_CMDLINE_DEVICES > > If unsure, say 'N'. > > -endmenu > +endif # VIRTIO_MENU > -- ~Randy