]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - crypto/cts.c
crypto: Replaced gcc specific attributes with macros from compiler.h
[mirror_ubuntu-bionic-kernel.git] / crypto / cts.c
index 00254d76b21b64fa21baf4e61972fc83f7ad3e70..a1335d6c35fbe5e8c840b0de161fd8ae0c508ed1 100644 (file)
@@ -49,6 +49,7 @@
 #include <linux/scatterlist.h>
 #include <crypto/scatterwalk.h>
 #include <linux/slab.h>
+#include <linux/compiler.h>
 
 struct crypto_cts_ctx {
        struct crypto_skcipher *child;
@@ -103,7 +104,7 @@ static int cts_cbc_encrypt(struct skcipher_request *req)
        struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
        struct skcipher_request *subreq = &rctx->subreq;
        int bsize = crypto_skcipher_blocksize(tfm);
-       u8 d[bsize * 2] __attribute__ ((aligned(__alignof__(u32))));
+       u8 d[bsize * 2] __aligned(__alignof__(u32));
        struct scatterlist *sg;
        unsigned int offset;
        int lastn;
@@ -183,7 +184,7 @@ static int cts_cbc_decrypt(struct skcipher_request *req)
        struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
        struct skcipher_request *subreq = &rctx->subreq;
        int bsize = crypto_skcipher_blocksize(tfm);
-       u8 d[bsize * 2] __attribute__ ((aligned(__alignof__(u32))));
+       u8 d[bsize * 2] __aligned(__alignof__(u32));
        struct scatterlist *sg;
        unsigned int offset;
        u8 *space;