Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753730AbeAGLeK (ORCPT + 1 other); Sun, 7 Jan 2018 06:34:10 -0500 Received: from mail-wm0-f66.google.com ([74.125.82.66]:43642 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753268AbeAGLeI (ORCPT ); Sun, 7 Jan 2018 06:34:08 -0500 X-Google-Smtp-Source: ACJfBovXkXnnAYNhBOKEg2+MkvnrsaaMsWNEmeEAW3Hlf3zcLINREqc1vZRiAJdL6vOcDGMjsCg2/Q== From: Vincent Legoll To: "Michael S. Tsirkin" , Jason Wang , virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org Cc: Randy Dunlap , Vincent Legoll Subject: [PATCH] virtio: make VIRTIO a menuconfig to ease disabling it all Date: Sun, 7 Jan 2018 12:33:56 +0100 Message-Id: <20180107113356.2806-1-vincent.legoll@gmail.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <459e2097-f20a-18f8-17d9-2d9ed011211d@infradead.org> References: <459e2097-f20a-18f8-17d9-2d9ed011211d@infradead.org> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: 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: Added "default y" to avoid breaking existing configs v3: Fixed wrong indentation, added *-by from Randy Signed-off-by: Vincent Legoll Reviewed-by: Randy Dunlap Tested-by: Randy Dunlap # works for me --- drivers/virtio/Kconfig | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/virtio/Kconfig b/drivers/virtio/Kconfig index cff773f15b7e..35897649c24f 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 + +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 -- 2.14.1