mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-11-01 09:13:37 +00:00
crypto: acomp - Remove ACOMP_REQUEST_ALLOC
Remove ACOMP_REQUEST_ALLOC in favour of ACOMP_REQUEST_ON_STACK with ACOMP_REQUEST_CLONE. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
e87e95d8dd
commit
018cba2ecc
1 changed files with 0 additions and 21 deletions
|
|
@ -48,12 +48,6 @@
|
||||||
|
|
||||||
#define MAX_SYNC_COMP_REQSIZE 0
|
#define MAX_SYNC_COMP_REQSIZE 0
|
||||||
|
|
||||||
#define ACOMP_REQUEST_ALLOC(name, tfm, gfp) \
|
|
||||||
char __##name##_req[sizeof(struct acomp_req) + \
|
|
||||||
MAX_SYNC_COMP_REQSIZE] CRYPTO_MINALIGN_ATTR; \
|
|
||||||
struct acomp_req *name = acomp_request_alloc_init( \
|
|
||||||
__##name##_req, (tfm), (gfp))
|
|
||||||
|
|
||||||
#define ACOMP_REQUEST_ON_STACK(name, tfm) \
|
#define ACOMP_REQUEST_ON_STACK(name, tfm) \
|
||||||
char __##name##_req[sizeof(struct acomp_req) + \
|
char __##name##_req[sizeof(struct acomp_req) + \
|
||||||
MAX_SYNC_COMP_REQSIZE] CRYPTO_MINALIGN_ATTR; \
|
MAX_SYNC_COMP_REQSIZE] CRYPTO_MINALIGN_ATTR; \
|
||||||
|
|
@ -580,21 +574,6 @@ int crypto_acomp_compress(struct acomp_req *req);
|
||||||
*/
|
*/
|
||||||
int crypto_acomp_decompress(struct acomp_req *req);
|
int crypto_acomp_decompress(struct acomp_req *req);
|
||||||
|
|
||||||
static inline struct acomp_req *acomp_request_alloc_init(
|
|
||||||
char *buf, struct crypto_acomp *tfm, gfp_t gfp)
|
|
||||||
{
|
|
||||||
struct acomp_req *req;
|
|
||||||
|
|
||||||
if ((req = acomp_request_alloc(tfm, gfp)))
|
|
||||||
return req;
|
|
||||||
|
|
||||||
req = (void *)buf;
|
|
||||||
acomp_request_set_tfm(req, tfm->fb);
|
|
||||||
req->base.flags = CRYPTO_TFM_REQ_ON_STACK;
|
|
||||||
|
|
||||||
return req;
|
|
||||||
}
|
|
||||||
|
|
||||||
static inline struct acomp_req *acomp_request_on_stack_init(
|
static inline struct acomp_req *acomp_request_on_stack_init(
|
||||||
char *buf, struct crypto_acomp *tfm)
|
char *buf, struct crypto_acomp *tfm)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue