Linux virtualization list
 help / color / mirror / Atom feed
[parent not found: <459e2097-f20a-18f8-17d9-2d9ed011211d@infradead.org>]
* [PATCH] virtio: make VIRTIO a menuconfig to ease disabling it all
@ 2017-12-09 15:26 Vincent Legoll
  0 siblings, 0 replies; 10+ 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 related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2018-01-07 11:33 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20171209152657.4762-1-vincent.legoll@gmail.com>
2017-12-21  6:44 ` virtio: make VIRTIO a menuconfig to ease disabling it all Andrei Vagin
2017-12-21 10:53 ` [PATCH] " Michael Ellerman
     [not found] ` <87tvwkfj2f.fsf@concordia.ellerman.id.au>
2017-12-21 16:23   ` Vincent Legoll
     [not found]   ` <CAEwRq=pVCUPGq4=JLOHQ4gQE0FC+Fotci8+DR_VupgB1BJJB1w@mail.gmail.com>
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
     [not found]         ` <20180103094918.6106-1-vincent.legoll@gmail.com>
2018-01-03  9:49           ` [PATCH] [PATCH] virtio: make VIRTIO a menuconfig to ease disabling it all Vincent Legoll
     [not found]           ` <20180103094918.6106-2-vincent.legoll@gmail.com>
2018-01-07  3:25             ` Randy Dunlap
     [not found] <459e2097-f20a-18f8-17d9-2d9ed011211d@infradead.org>
2018-01-07 11:33 ` Vincent Legoll
2017-12-09 15:26 Vincent Legoll

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