Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

-21
-21
include/crypto/acompress.h
··· 48 48 49 49 #define MAX_SYNC_COMP_REQSIZE 0 50 50 51 - #define ACOMP_REQUEST_ALLOC(name, tfm, gfp) \ 52 - char __##name##_req[sizeof(struct acomp_req) + \ 53 - MAX_SYNC_COMP_REQSIZE] CRYPTO_MINALIGN_ATTR; \ 54 - struct acomp_req *name = acomp_request_alloc_init( \ 55 - __##name##_req, (tfm), (gfp)) 56 - 57 51 #define ACOMP_REQUEST_ON_STACK(name, tfm) \ 58 52 char __##name##_req[sizeof(struct acomp_req) + \ 59 53 MAX_SYNC_COMP_REQSIZE] CRYPTO_MINALIGN_ATTR; \ ··· 573 579 * Return: zero on success; error code in case of error 574 580 */ 575 581 int crypto_acomp_decompress(struct acomp_req *req); 576 - 577 - static inline struct acomp_req *acomp_request_alloc_init( 578 - char *buf, struct crypto_acomp *tfm, gfp_t gfp) 579 - { 580 - struct acomp_req *req; 581 - 582 - if ((req = acomp_request_alloc(tfm, gfp))) 583 - return req; 584 - 585 - req = (void *)buf; 586 - acomp_request_set_tfm(req, tfm->fb); 587 - req->base.flags = CRYPTO_TFM_REQ_ON_STACK; 588 - 589 - return req; 590 - } 591 582 592 583 static inline struct acomp_req *acomp_request_on_stack_init( 593 584 char *buf, struct crypto_acomp *tfm)