device-dax: Tell kbuild DEV_DAX_PMEM depends on DEV_DAX
authorMike Galbraith <efault@gmx.de>
Sat, 6 May 2017 04:14:43 +0000 (06:14 +0200)
committerDan Williams <dan.j.williams@intel.com>
Mon, 8 May 2017 17:54:49 +0000 (10:54 -0700)
ERROR: "devm_create_dev_dax" [drivers/dax/dax_pmem.ko] undefined!
ERROR: "alloc_dax_region" [drivers/dax/dax_pmem.ko] undefined!
ERROR: "dax_region_put" [drivers/dax/dax_pmem.ko] undefined!

Signed-off-by: Mike Galbraith <efault@gmx.de>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/dax/Kconfig

index b7053eafd88e72104955e1c7c86770d64ca4aa7a..6b7e20eae16c63865acd49682ae78c43e7f528b6 100644 (file)
@@ -19,7 +19,7 @@ config DEV_DAX
 
 config DEV_DAX_PMEM
        tristate "PMEM DAX: direct access to persistent memory"
-       depends on LIBNVDIMM && NVDIMM_DAX
+       depends on LIBNVDIMM && NVDIMM_DAX && DEV_DAX
        default DEV_DAX
        help
          Support raw access to persistent memory.  Note that this