From 10c4de10b2624ab9d83bd8e708d39a1867302a6a Mon Sep 17 00:00:00 2001
From: Christoph Hellwig <hch@lst.de>
Date: Wed, 9 Mar 2016 15:43:27 +0100
Subject: nfsd: block and scsi layout drivers need to depend on CONFIG_BLOCK

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reported-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
---
 fs/nfsd/Kconfig | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'fs/nfsd/Kconfig')

diff --git a/fs/nfsd/Kconfig b/fs/nfsd/Kconfig
index a30a31316e68..c9f583d7bac8 100644
--- a/fs/nfsd/Kconfig
+++ b/fs/nfsd/Kconfig
@@ -88,7 +88,7 @@ config NFSD_PNFS
 
 config NFSD_BLOCKLAYOUT
 	bool "NFSv4.1 server support for pNFS block layouts"
-	depends on NFSD_V4
+	depends on NFSD_V4 && BLOCK
 	select NFSD_PNFS
 	help
 	  This option enables support for the exporting pNFS block layouts
@@ -100,7 +100,7 @@ config NFSD_BLOCKLAYOUT
 
 config NFSD_SCSILAYOUT
 	bool "NFSv4.1 server support for pNFS SCSI layouts"
-	depends on NFSD_V4
+	depends on NFSD_V4 && BLOCK
 	select NFSD_PNFS
 	help
 	  This option enables support for the exporting pNFS SCSI layouts
-- 
cgit v1.2.3