crypto: skcipher - Eliminate duplicate virt.addr field

Reuse the addr field from struct scatter_walk for skcipher_walk.

Keep the existing virt.addr fields but make them const for the
user to access the mapped address.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
Herbert Xu
2025-03-08 20:45:25 +08:00
parent 131bdceca1
commit db873be6f0
3 changed files with 36 additions and 24 deletions

View File

@@ -107,14 +107,15 @@ struct crypto_queue {
};
struct scatter_walk {
struct scatterlist *sg;
unsigned int offset;
/* Must be the first member, see struct skcipher_walk. */
union {
void *const addr;
/* Private API field, do not touch. */
union crypto_no_such_thing *__addr;
};
struct scatterlist *sg;
unsigned int offset;
};
struct crypto_attr_alg {