summaryrefslogtreecommitdiff
path: root/include/crypto/acompress.h
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2025-02-27 18:14:57 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2025-03-08 16:23:22 +0800
commit8f3332eecdd420c4cfc8861c7b63508cac07e227 (patch)
tree354a25df90f802dbd4a7f42db4b8273545e3e1df /include/crypto/acompress.h
parentfc4bd01d9ff592f620c499686245c093440db0e8 (diff)
crypto: acomp - Remove acomp request flags
The acomp request flags field duplicates the base request flags and is confusing. Remove it. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include/crypto/acompress.h')
-rw-r--r--include/crypto/acompress.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/include/crypto/acompress.h b/include/crypto/acompress.h
index 54937b615239..b6d5136e689d 100644
--- a/include/crypto/acompress.h
+++ b/include/crypto/acompress.h
@@ -24,7 +24,6 @@
* @dst: Destination data
* @slen: Size of the input buffer
* @dlen: Size of the output buffer and number of bytes produced
- * @flags: Internal flags
* @__ctx: Start of private context data
*/
struct acomp_req {
@@ -33,7 +32,6 @@ struct acomp_req {
struct scatterlist *dst;
unsigned int slen;
unsigned int dlen;
- u32 flags;
void *__ctx[] CRYPTO_MINALIGN_ATTR;
};
@@ -232,9 +230,9 @@ static inline void acomp_request_set_params(struct acomp_req *req,
req->slen = slen;
req->dlen = dlen;
- req->flags &= ~CRYPTO_ACOMP_ALLOC_OUTPUT;
+ req->base.flags &= ~CRYPTO_ACOMP_ALLOC_OUTPUT;
if (!req->dst)
- req->flags |= CRYPTO_ACOMP_ALLOC_OUTPUT;
+ req->base.flags |= CRYPTO_ACOMP_ALLOC_OUTPUT;
}
/**