crypto: geode: Don't use tfm->__crt_alg->cra_name directly
Subsystems (4)
PATCH 1/7 crypto: geode: Don't use tfm->__crt_alg->cra_name directly
Use a standard accessor instead of directly digging into a structure.
--- drivers/crypto/geode-aes.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
NOTE: I didn't compile-test those, but the change should not break anything.
If possible, please test on relevant hardware.
drivers/crypto/geode-aes.c +2 -2
@@ -255,7 +255,7 @@ geode_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in)static int fallback_init_cip (struct crypto_tfm *tfm) { -const char *name = tfm->__crt_alg->cra_name; +const char *name =crypto_tfm_alg_name (tfm);struct geode_aes_op *op =crypto_tfm_ctx (tfm); op->fallback.cip = crypto_alloc_cipher(name, 0,
@@ -365,7 +365,7 @@ geode_cbc_encrypt(struct blkcipher_desc *desc,static int fallback_init_blk (struct crypto_tfm *tfm) { -const char *name = tfm->__crt_alg->cra_name; +const char *name =crypto_tfm_alg_name (tfm);struct geode_aes_op *op =crypto_tfm_ctx (tfm); op->fallback.blk = crypto_alloc_blkcipher(name, 0,
Signature · 1 line
2.0.0.rc0
PATCH 3/7 crypto: cesa: Don't use tfm->__crt_alg->cra_name directly
--- drivers/crypto/mv_cesa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
NOTE: I didn't compile-test those, but the change should not break anything.
If possible, please test on relevant hardware.
drivers/crypto/mv_cesa.c +1 -1
@@ -843,7 +843,7 @@ static int mv_hash_setkey(struct crypto_ahash *tfm, const u8 * key,static int mv_cra_hash_init (struct crypto_tfm *tfm,const char *base_hash_name,enum hash_op op,int count_add) { -const char *fallback_driver_name = tfm->__crt_alg->cra_name; +const char *fallback_driver_name =crypto_tfm_alg_name (tfm);struct mv_tfm_hash_ctx *ctx =crypto_tfm_ctx (tfm);struct crypto_shash *fallback_tfm =NULL ;struct crypto_shash *base_hash =NULL ;
Signature · 1 line
2.0.0.rc0
PATCH 4/7 crypto: dcp: Don't use tfm->__crt_alg->cra_name directly
In reply to Marek Vasut--- drivers/crypto/mxs-dcp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
NOTE: I didn't compile-test those, but the change should not break anything.
If possible, please test on relevant hardware.
drivers/crypto/mxs-dcp.c +1 -1
@@ -482,7 +482,7 @@ static int mxs_dcp_aes_setkey(struct crypto_ablkcipher *tfm, const u8 *key,static int mxs_dcp_aes_fallback_init (struct crypto_tfm *tfm) { -const char *name = tfm->__crt_alg->cra_name; +const char *name =crypto_tfm_alg_name (tfm);const uint32_t flags =CRYPTO_ALG_ASYNC |CRYPTO_ALG_NEED_FALLBACK ;struct dcp_async_ctx *actx =crypto_tfm_ctx (tfm);struct crypto_ablkcipher *blk;
Signature · 1 line
2.0.0.rc0
PATCH 5/7 crypto: n2: Don't use tfm->__crt_alg->cra_name directly
In reply to Marek Vasut--- drivers/crypto/n2_core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
NOTE: I didn't compile-test those, but the change should not break anything.
If possible, please test on relevant hardware.
drivers/crypto/n2_core.c +2 -2
@@ -356,7 +356,7 @@ static int n2_hash_async_finup(struct ahash_request *req)static int n2_hash_cra_init (struct crypto_tfm *tfm) { -const char *fallback_driver_name = tfm->__crt_alg->cra_name; +const char *fallback_driver_name =crypto_tfm_alg_name (tfm);struct crypto_ahash *ahash =__crypto_ahash_cast (tfm);struct n2_hash_ctx *ctx =crypto_ahash_ctx (ahash);struct crypto_ahash *fallback_tfm;
@@ -391,7 +391,7 @@ static void n2_hash_cra_exit(struct crypto_tfm *tfm)static int n2_hmac_cra_init (struct crypto_tfm *tfm) { -const char *fallback_driver_name = tfm->__crt_alg->cra_name; +const char *fallback_driver_name =crypto_tfm_alg_name (tfm);struct crypto_ahash *ahash =__crypto_ahash_cast (tfm);struct n2_hmac_ctx *ctx =crypto_ahash_ctx (ahash);struct n2_hmac_alg *n2alg =n2_hmac_alg (tfm);
Signature · 1 line
2.0.0.rc0
PATCH 7/7 crypto: sahara: Don't use tfm->__crt_alg->cra_name directly
In reply to Marek Vasut--- drivers/crypto/sahara.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
NOTE: I didn't compile-test those, but the change should not break anything.
If possible, please test on relevant hardware.
drivers/crypto/sahara.c +1 -1
@@ -728,7 +728,7 @@ static int sahara_aes_cbc_decrypt(struct ablkcipher_request *req)static int sahara_aes_cra_init (struct crypto_tfm *tfm) { -const char *name = tfm->__crt_alg->cra_name; +const char *name =crypto_tfm_alg_name (tfm);struct sahara_ctx *ctx =crypto_tfm_ctx (tfm); ctx->fallback = crypto_alloc_ablkcipher(name, 0,
Signature · 1 line
2.0.0.rc0
PATCH 2/7 crypto: ccp: Don't use tfm->__crt_alg->cra_name directly
In reply to Marek Vasut--- drivers/crypto/ccp/ccp-crypto-aes-xts.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
NOTE: I didn't compile-test those, but the change should not break anything.
If possible, please test on relevant hardware.
drivers/crypto/ccp/ccp-crypto-aes-xts.c +2 -2
@@ -191,12 +191,12 @@ static int ccp_aes_xts_cra_init(struct crypto_tfm *tfm) ctx->complete = ccp_aes_xts_complete; ctx->u.aes.key_len =0 ; - fallback_tfm =crypto_alloc_ablkcipher (tfm->__crt_alg->cra_name,0 , + fallback_tfm =crypto_alloc_ablkcipher (crypto_tfm_alg_name (tfm),0 ,CRYPTO_ALG_ASYNC |CRYPTO_ALG_NEED_FALLBACK );if (IS_ERR (fallback_tfm)) {pr_warn ("could not load fallback driver %s\n" , - tfm->__crt_alg->cra_name); +crypto_tfm_alg_name (tfm));return PTR_ERR (fallback_tfm); } ctx->u.aes.tfm_ablkcipher = fallback_tfm;
Signature · 1 line
2.0.0.rc0
PATCH 6/7 crypto: padlock: Don't use tfm->__crt_alg->cra_name directly
In reply to Marek Vasut--- drivers/crypto/padlock-sha.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
NOTE: I didn't compile-test those, but the change should not break anything.
If possible, please test on relevant hardware.
drivers/crypto/padlock-sha.c +1 -1
@@ -211,7 +211,7 @@ static int padlock_sha256_final(struct shash_desc *desc, u8 *out)static int padlock_cra_init (struct crypto_tfm *tfm) {struct crypto_shash *hash =__crypto_shash_cast (tfm); -const char *fallback_driver_name = tfm->__crt_alg->cra_name; +const char *fallback_driver_name =crypto_tfm_alg_name (tfm);struct padlock_sha_ctx *ctx =crypto_tfm_ctx (tfm);struct crypto_shash *fallback_tfm;int err = -ENOMEM ;
Signature · 1 line
2.0.0.rc0
Herbert Xu
maintainerQuoted 3 lines · Marek Vasut
Use a standard accessor instead of directly digging into a structure.
Signed-off-by Marek Vasut <[email protected]>
All applied.
Signature · 3 lines
Email: Herbert Xu <[email protected]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt