mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Vincent Legoll <vincent.legoll@gmail.com>
To: mst@redhat.com, jasowang@redhat.com,
	virtualization@lists.linux-foundation.org,
	linux-kernel@vger.kernel.org
Cc: Vincent Legoll <vincent.legoll@gmail.com>
Subject: [PATCH] [PATCH] virtio: make VIRTIO a menuconfig to ease disabling it all
Date: Wed,  3 Jan 2018 10:49:18 +0100	[thread overview]
Message-ID: <20180103094918.6106-2-vincent.legoll@gmail.com> (raw)
In-Reply-To: <20180103094918.6106-1-vincent.legoll@gmail.com>

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 <vincent.legoll@gmail.com>
---
 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

  reply	other threads:[~2018-01-03  9:49 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-09 15:26 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           ` Vincent Legoll [this message]
2018-01-07  3:25             ` [PATCH] [PATCH] virtio: make VIRTIO a menuconfig to ease disabling it all 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180103094918.6106-2-vincent.legoll@gmail.com \
    --to=vincent.legoll@gmail.com \
    --cc=jasowang@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mst@redhat.com \
    --cc=virtualization@lists.linux-foundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®