device-dax: fix BLOCK dependency
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
@@ -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
Quoted 9 lines · Fabian Frederick
commit
ef51042472f5("block, dax: move "select DAX" from BLOCK toFS_DAX") usesget_start_sect()which requiresCONFIG_BLOCKmake 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.