[PATCH 3/3] UBI: block: Add CONFIG_BLOCK dependency

Ezequiel Garcia ezequiel.garcia at free-electrons.com
Mon Mar 3 11:42:40 EST 2014


The UBI block driver depends on the block infrastructure. Add the
proper dependency and fix a build error when CONFIG_BLOCK is not selected.

Reported-by: kbuild test robot <fengguang.wu at intel.com>
Signed-off-by: Ezequiel Garcia <ezequiel.garcia at free-electrons.com>
---
 drivers/mtd/ubi/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/mtd/ubi/Kconfig b/drivers/mtd/ubi/Kconfig
index 783fb18..f0855ce 100644
--- a/drivers/mtd/ubi/Kconfig
+++ b/drivers/mtd/ubi/Kconfig
@@ -90,6 +90,7 @@ config MTD_UBI_GLUEBI
 config MTD_UBI_BLOCK
 	bool "Read-only block devices on top of UBI volumes"
 	default n
+	depends on BLOCK
 	help
 	   This option enables read-only UBI block devices support. UBI block
 	   devices will be layered on top of UBI volumes, which means that the
-- 
1.8.1.5




More information about the linux-mtd mailing list