Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0f1c72a2 authored by Eric Biggers's avatar Eric Biggers
Browse files

ANDROID: block: export symbols needed for modules to use inline crypto



Export the blk-crypto symbols needed for modules to use inline crypto.

These would have already been exported, except that so far they've only
been used by fs/crypto/, which is no longer modular.

Bug: 137270441
Bug: 147814592
Change-Id: I64bf98aecabe891c188b30dd50124aacb1e008ca
Signed-off-by: default avatarEric Biggers <ebiggers@google.com>
parent 35b62551
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -49,6 +49,7 @@ struct bio_crypt_ctx *bio_crypt_alloc_ctx(gfp_t gfp_mask)
{
	return mempool_alloc(bio_crypt_ctx_pool, gfp_mask);
}
EXPORT_SYMBOL_GPL(bio_crypt_alloc_ctx);

void bio_crypt_free_ctx(struct bio *bio)
{
+1 −0
Original line number Diff line number Diff line
@@ -556,6 +556,7 @@ int blk_crypto_start_using_mode(enum blk_crypto_mode_num mode_num,
	mutex_unlock(&tfms_init_lock);
	return err;
}
EXPORT_SYMBOL_GPL(blk_crypto_start_using_mode);

int blk_crypto_fallback_evict_key(const struct blk_crypto_key *key)
{
+2 −0
Original line number Diff line number Diff line
@@ -221,6 +221,7 @@ int blk_crypto_init_key(struct blk_crypto_key *blk_key,

	return 0;
}
EXPORT_SYMBOL_GPL(blk_crypto_init_key);

/**
 * blk_crypto_evict_key() - Evict a key from any inline encryption hardware
@@ -247,3 +248,4 @@ int blk_crypto_evict_key(struct request_queue *q,

	return blk_crypto_fallback_evict_key(key);
}
EXPORT_SYMBOL_GPL(blk_crypto_evict_key);