From: Vincent Legoll <vincent.legoll@gmail.com>
To: Alexander Viro <viro@zeniv.linux.org.uk>,
Kees Cook <keescook@chromium.org>,
Anton Vorontsov <anton@enomsg.org>,
Colin Cross <ccross@android.com>, Tony Luck <tony.luck@intel.com>,
linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: Vincent Legoll <vincent.legoll@gmail.com>
Subject: [PATCH] Change some filesystem menus into menuconfig to ease disabling it all
Date: Sat, 9 Dec 2017 18:12:52 +0100 [thread overview]
Message-ID: <20171209171252.8547-1-vincent.legoll@gmail.com> (raw)
No need to get into the submenu to disable all related
config entries.
This makes it easier to disable all related 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>
---
fs/Kconfig | 21 +++++++++++++++------
1 file changed, 15 insertions(+), 6 deletions(-)
diff --git a/fs/Kconfig b/fs/Kconfig
index 7aee6d699fd6..94ee1422e995 100644
--- a/fs/Kconfig
+++ b/fs/Kconfig
@@ -105,29 +105,38 @@ source "fs/autofs4/Kconfig"
source "fs/fuse/Kconfig"
source "fs/overlayfs/Kconfig"
-menu "Caches"
+menuconfig FS_CACHE_MENU
+ bool "Caches"
+
+if FS_CACHE_MENU
source "fs/fscache/Kconfig"
source "fs/cachefiles/Kconfig"
-endmenu
+endif # FS_CACHE_MENU
if BLOCK
-menu "CD-ROM/DVD Filesystems"
+menuconfig FS_CDVD_MENU
+ bool "CD-ROM/DVD Filesystems"
+
+if FS_CDVD_MENU
source "fs/isofs/Kconfig"
source "fs/udf/Kconfig"
-endmenu
+endif # FS_CDVD_MENU
endif # BLOCK
if BLOCK
-menu "DOS/FAT/NT Filesystems"
+menuconfig FS_FAT_MENU
+ bool "DOS/FAT/NT Filesystems"
+
+if FS_FAT_MENU
source "fs/fat/Kconfig"
source "fs/ntfs/Kconfig"
-endmenu
+endif # FS_FAT_MENU
endif # BLOCK
menu "Pseudo filesystems"
--
2.14.1
reply other threads:[~2017-12-09 17:13 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20171209171252.8547-1-vincent.legoll@gmail.com \
--to=vincent.legoll@gmail.com \
--cc=anton@enomsg.org \
--cc=ccross@android.com \
--cc=keescook@chromium.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=tony.luck@intel.com \
--cc=viro@zeniv.linux.org.uk \
/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).