crypto: skcipher - Remove SKCIPHER_REQUEST_ON_STACK()
authorKees Cook <keescook@chromium.org>
Wed, 19 Sep 2018 02:11:00 +0000 (19:11 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 28 Sep 2018 04:46:09 +0000 (12:46 +0800)
Now that all the users of the VLA-generating SKCIPHER_REQUEST_ON_STACK()
macro have been moved to SYNC_SKCIPHER_REQUEST_ON_STACK(), we can remove
the former.

Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
include/crypto/skcipher.h

index d00ce90dc7da20a11a18b3fe62817af15bd4d02a..45ae894fda328e5c3d443e04b29ef470d0a55d44 100644 (file)
@@ -156,11 +156,6 @@ struct skcipher_alg {
                            ] CRYPTO_MINALIGN_ATTR; \
        struct skcipher_request *name = (void *)__##name##_desc
 
-#define SKCIPHER_REQUEST_ON_STACK(name, tfm) \
-       char __##name##_desc[sizeof(struct skcipher_request) + \
-               crypto_skcipher_reqsize(tfm)] CRYPTO_MINALIGN_ATTR; \
-       struct skcipher_request *name = (void *)__##name##_desc
-
 /**
  * DOC: Symmetric Key Cipher API
  *