Skip to contentSkip to conversation

device-dax: fix BLOCK dependency

PATCH In review Fabian Frederick 2 participants 2 messages May 13, 2017 Device direct access (DAX)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 device-dax: fix BLOCK dependency

commit ef51042472f5 ("block, dax: move "select DAX" from BLOCK to FS_DAX") uses get_start_sect() which requires CONFIG_BLOCK

make allnoconfig + dax gives the following:

drivers/dax/super.c: In function 'bdev_dax_pgoff':
drivers/dax/super.c:50:26: error: implicit declaration of function 'get_start_sect' [-Werror=implicit-function-declaration]

---
 drivers/dax/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/dax/Kconfig +1 -0
index b79aa8f..1806628 100644
@@ -1,5 +1,6 @@
 menuconfig DAX
 	tristate "DAX: direct access to differentiated memory"
+	depends on BLOCK
 	select SRCU
 	default m if NVDIMM_DAX
 
Signature · 1 line
2.9.3
#1 lore raw
Quoted 9 lines · Fabian Frederick

commit ef51042472f5 ("block, dax: move "select DAX" from BLOCK to FS_DAX") uses get_start_sect() which requires CONFIG_BLOCK

make allnoconfig + dax gives the following:

drivers/dax/super.c: In function 'bdev_dax_pgoff':
drivers/dax/super.c:50:26: error: implicit declaration of function 'get_start_sect' [-Werror=implicit-function-declaration]

Ah, sorry for this breakage, I guess this is a config that kbuild does not attempt. I'll fix this up by not compiling the block-related helpers in the BLOCK=n case.