mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] virtio: make VIRTIO a menuconfig to ease disabling it all
@ 2017-12-09 15:26 Vincent Legoll
  2017-12-21  6:44 ` Andrei Vagin
  2017-12-21 10:53 ` [PATCH] " Michael Ellerman
  0 siblings, 2 replies; 13+ messages in thread
From: Vincent Legoll @ 2017-12-09 15:26 UTC (permalink / raw)
  To: mst, jasowang, virtualization, linux-kernel; +Cc: Vincent Legoll

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 <vincent.legoll@gmail.com>
---
 drivers/virtio/Kconfig | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/drivers/virtio/Kconfig b/drivers/virtio/Kconfig
index cff773f15b7e..d485a63a8233 100644
--- a/drivers/virtio/Kconfig
+++ b/drivers/virtio/Kconfig
@@ -5,7 +5,10 @@ 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"
+
+if VIRTIO_MENU
 
 config VIRTIO_PCI
 	tristate "PCI driver for virtio devices"
@@ -79,4 +82,4 @@ config VIRTIO_MMIO_CMDLINE_DEVICES
 
 	 If unsure, say 'N'.
 
-endmenu
+endif # VIRTIO_MENU
-- 
2.14.1

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2018-01-28 10:14 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-09 15:26 [PATCH] virtio: make VIRTIO a menuconfig to ease disabling it all Vincent Legoll
2017-12-21  6:44 ` Andrei Vagin
2017-12-21 10:53 ` [PATCH] " Michael Ellerman
2017-12-21 16:23   ` Vincent Legoll
2017-12-22  2:12     ` Michael Ellerman
2018-01-02 22:40       ` Michael Ellerman
2018-01-03  9:49         ` [PATCH, v2] virtio: make VIRTIO a menuconfig to ease disabling it Vincent Legoll
2018-01-03  9:49           ` [PATCH] [PATCH] virtio: make VIRTIO a menuconfig to ease disabling it all Vincent Legoll
2018-01-07  3:25             ` Randy Dunlap
2018-01-07 11:33               ` Vincent Legoll
2018-01-23  4:31                 ` Ping " Michael Ellerman
2018-01-23  8:08                   ` Vincent Legoll
2018-01-28 10:14                     ` Michael Ellerman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®