From: Vincent Legoll <vincent.legoll@gmail.com>
To: kys@microsoft.com, haiyangz@microsoft.com,
sthemmin@microsoft.com, devel@linuxdriverproject.org,
linux-kernel@vger.kernel.org
Cc: Vincent Legoll <vincent.legoll@gmail.com>
Subject: [PATCH] hyperv: make HYPERV a menuconfig to ease disabling it all
Date: Sat, 16 Dec 2017 11:07:59 +0100 [thread overview]
Message-ID: <20171216100759.10381-2-vincent.legoll@gmail.com> (raw)
In-Reply-To: <20171216100759.10381-1-vincent.legoll@gmail.com>
No need to get into the submenu to disable all HYPERV-related
config entries.
This makes it easier to disable all HYPERV 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: added "default y" to avoid breaking existing configs
Signed-off-by: Vincent Legoll <vincent.legoll@gmail.com>
---
drivers/hv/Kconfig | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/drivers/hv/Kconfig b/drivers/hv/Kconfig
index 50b89ea0e60f..a6cda712135f 100644
--- a/drivers/hv/Kconfig
+++ b/drivers/hv/Kconfig
@@ -1,4 +1,8 @@
-menu "Microsoft Hyper-V guest support"
+menuconfig HYPERV_MENU
+ bool "Microsoft Hyper-V guest support"
+ default y
+
+if HYPERV_MENU
config HYPERV
tristate "Microsoft Hyper-V client drivers"
@@ -23,4 +27,4 @@ config HYPERV_BALLOON
help
Select this option to enable Hyper-V Balloon driver.
-endmenu
+endif # HYPERV_MENU
--
2.14.1
next prev parent reply other threads:[~2017-12-16 10:08 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-09 15:21 [PATCH] hyperv: make HYPERV a menuconfig to ease disabling it all Vincent Legoll
2017-12-10 5:50 ` Stephen Hemminger
2017-12-13 8:54 ` Vincent Legoll
2017-12-13 21:23 ` Stephen Hemminger
2017-12-14 7:51 ` Greg KH
2017-12-14 17:43 ` Randy Dunlap
2017-12-16 10:07 ` [PATCH,v2] hyperv: make HYPERV a menuconfig to ease disabling it al Vincent Legoll
2017-12-16 10:07 ` Vincent Legoll [this message]
2017-12-16 17:51 ` [PATCH] hyperv: make HYPERV a menuconfig to ease disabling it all Stephen Hemminger
2017-12-17 14:02 ` Vincent Legoll
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=20171216100759.10381-2-vincent.legoll@gmail.com \
--to=vincent.legoll@gmail.com \
--cc=devel@linuxdriverproject.org \
--cc=haiyangz@microsoft.com \
--cc=kys@microsoft.com \
--cc=linux-kernel@vger.kernel.org \
--cc=sthemmin@microsoft.com \
/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;
as well as URLs for NNTP newsgroup(s).