virtio: make VIRTIO a menuconfig to ease disabling it all

"Linux Kernel Mailing List" <[email protected]>
Newsgroups gmane.linux.kernel.commits.head
Message-ID <[email protected]>
Web:        https://git.kernel.org/torvalds/c/7b95fec6d2ffa53f4a8d637b0f223644d458ea4e
Commit:     7b95fec6d2ffa53f4a8d637b0f223644d458ea4e
Parent:     a311650ae6ad0c169ade2583f78aa519878ea13f
Refname:    refs/heads/master
Author:     Vincent Legoll <[email protected]>
AuthorDate: Sun Jan 7 12:33:56 2018 +0100
Committer:  Michael S. Tsirkin <[email protected]>
CommitDate: Thu Feb 1 16:26:43 2018 +0200

    virtio: make VIRTIO a menuconfig to ease disabling it all
    
    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.
    
    Signed-off-by: Vincent Legoll <[email protected]>
    Reviewed-by: Randy Dunlap <[email protected]>
    Tested-by: Randy Dunlap <[email protected]>
    Signed-off-by: Michael S. Tsirkin <[email protected]>
---
 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
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.