Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752162AbeACJth (ORCPT + 1 other); Wed, 3 Jan 2018 04:49:37 -0500 Received: from mail-wr0-f196.google.com ([209.85.128.196]:34144 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752093AbeACJtd (ORCPT ); Wed, 3 Jan 2018 04:49:33 -0500 X-Google-Smtp-Source: ACJfBouyx5KFvc96kQW/rE96ooJ/blSg7T9bgo83YXnHVHNaOkdYqi93IAD+LhvDrjwNdobhSkWPFg== From: Vincent Legoll To: mst@redhat.com, jasowang@redhat.com, virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org Cc: Vincent Legoll Subject: [PATCH] [PATCH] virtio: make VIRTIO a menuconfig to ease disabling it all Date: Wed, 3 Jan 2018 10:49:18 +0100 Message-Id: <20180103094918.6106-2-vincent.legoll@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180103094918.6106-1-vincent.legoll@gmail.com> References: <871sj7dgvr.fsf@concordia.ellerman.id.au> <20180103094918.6106-1-vincent.legoll@gmail.com> 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: add "default y" to avoid breaking existing configs Signed-off-by: Vincent Legoll --- 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 + +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.11.0