diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2019-12-23 11:13:51 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-01-07 06:59:04 +0300 |
commit | a754bd5f1874978f55814b4498f66e4a0fd5b256 (patch) | |
tree | 175ae4f32ca79b4fba1e31735816ea6295a1f916 /drivers/nvme/host | |
parent | 95ed0c5b1292fb90fe100af88541a7bef6ba44ec (diff) | |
download | linux-a754bd5f1874978f55814b4498f66e4a0fd5b256.tar.xz |
block: Allow t10-pi to be modular
Currently t10-pi can only be built into the block layer which via
crc-t10dif pulls in a whole chunk of the Crypto API. In fact all
users of t10-pi work as modules and there is no reason for it to
always be built-in.
This patch adds a new hidden option for t10-pi that is selected
automatically based on BLK_DEV_INTEGRITY and whether the users
of t10-pi are built-in or not.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/nvme/host')
-rw-r--r-- | drivers/nvme/host/Kconfig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/nvme/host/Kconfig b/drivers/nvme/host/Kconfig index c6439638a419..b9358db83e96 100644 --- a/drivers/nvme/host/Kconfig +++ b/drivers/nvme/host/Kconfig @@ -1,6 +1,7 @@ # SPDX-License-Identifier: GPL-2.0-only config NVME_CORE tristate + select BLK_DEV_INTEGRITY_T10 if BLK_DEV_INTEGRITY config BLK_DEV_NVME tristate "NVM Express block device" |