staging: exfat: make exfat depend on BLOCK

From: Greg Kroah-Hartman
Date: Mon Sep 02 2019 - 13:45:06 EST


This should fix a build error in some configurations when CONFIG_BLOCK
is not selected. Also properly set the dependancy for no FAT support at
the same time.

Reported-by: Randy Dunlap <rdunlap@xxxxxxxxxxxxx>
Cc: Valdis Kletnieks <valdis.kletnieks@xxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
---
drivers/staging/exfat/Kconfig | 2 ++
1 file changed, 2 insertions(+)

diff --git a/drivers/staging/exfat/Kconfig b/drivers/staging/exfat/Kconfig
index f52129c67f97..290dbfc7ace1 100644
--- a/drivers/staging/exfat/Kconfig
+++ b/drivers/staging/exfat/Kconfig
@@ -1,11 +1,13 @@
config EXFAT_FS
tristate "exFAT fs support"
+ depends on BLOCK
select NLS
help
This adds support for the exFAT file system.

config EXFAT_DONT_MOUNT_VFAT
bool "Prohibit mounting of fat/vfat filesysems by exFAT"
+ depends on EXFAT_FS
default y
help
By default, the exFAT driver will only mount exFAT filesystems, and refuse
--
2.23.0