diff options
| author | Eric Biggers <ebiggers@kernel.org> | 2026-07-18 14:46:54 -0700 |
|---|---|---|
| committer | Eric Biggers <ebiggers@kernel.org> | 2026-07-20 10:39:26 -0700 |
| commit | fae2c34252cf4aea40d0d74fb41261bdcc581dbb (patch) | |
| tree | 973ecbc000a2b72aebffdeb0a4e11e04b74561d7 /block | |
| parent | 4f049ede0e0b59c1ee46ae9d07ff13652a36a5f4 (diff) | |
| download | linux-next-fae2c34252cf4aea40d0d74fb41261bdcc581dbb.tar.gz linux-next-fae2c34252cf4aea40d0d74fb41261bdcc581dbb.zip | |
blk-crypto: Remove unused function blk_crypto_config_supported()
blk_crypto_config_supported() is no longer called, so remove it.
Reviewed-by: Christoph Hellwig <hch@lst.de>
Link: https://patch.msgid.link/20260718214655.63186-6-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
Diffstat (limited to 'block')
| -rw-r--r-- | block/blk-crypto.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/block/blk-crypto.c b/block/blk-crypto.c index 0fe6ef0eea1d..bc3a9f59574b 100644 --- a/block/blk-crypto.c +++ b/block/blk-crypto.c @@ -386,20 +386,6 @@ bool blk_crypto_config_supported_natively(struct block_device *bdev, return true; } -/* - * Check if bios with @cfg can be en/decrypted by blk-crypto (i.e. either the - * block_device it's submitted to supports inline crypto, or the - * blk-crypto-fallback is enabled and supports the cfg). - */ -bool blk_crypto_config_supported(struct block_device *bdev, - const struct blk_crypto_config *cfg) -{ - if (IS_ENABLED(CONFIG_BLK_INLINE_ENCRYPTION_FALLBACK) && - cfg->key_type == BLK_CRYPTO_KEY_TYPE_RAW) - return true; - return blk_crypto_config_supported_natively(bdev, cfg); -} - /** * blk_crypto_start_using_key() - Start using a blk_crypto_key on a device * @bdev: block device to operate on |
