diff options
author | Dan Williams <dan.j.williams@intel.com> | 2018-03-30 03:20:39 +0300 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2018-04-03 15:41:19 +0300 |
commit | 2080e88aecd78773eacbe7d6b9d59968000ba55a (patch) | |
tree | 884af4d8fa7c875451df94cd82c917338992386e /drivers/nvdimm | |
parent | d2c997c0f14535eff68d8ed9c2f1c5e100625751 (diff) | |
download | linux-2080e88aecd78773eacbe7d6b9d59968000ba55a.tar.xz |
dax: introduce CONFIG_DAX_DRIVER
In support of allowing device-mapper to compile out idle/dead code when
there are no dax providers in the system, introduce the DAX_DRIVER
symbol. This is selected by all leaf drivers that device-mapper might be
layered on top. This allows device-mapper to conditionally 'select DAX'
only when a provider is present.
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
Reported-by: Bart Van Assche <Bart.VanAssche@wdc.com>
Reviewed-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/nvdimm')
-rw-r--r-- | drivers/nvdimm/Kconfig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nvdimm/Kconfig b/drivers/nvdimm/Kconfig index a65f2e1d9f53..40cbdb16e23e 100644 --- a/drivers/nvdimm/Kconfig +++ b/drivers/nvdimm/Kconfig @@ -20,7 +20,7 @@ if LIBNVDIMM config BLK_DEV_PMEM tristate "PMEM: Persistent memory block device support" default LIBNVDIMM - select DAX + select DAX_DRIVER select ND_BTT if BTT select ND_PFN if NVDIMM_PFN help |