crypto: Replaced gcc specific attributes with macros from compiler.h
[linux-block.git] / crypto / pcbc.c
index e4538e07f7caa3e03f8a25268a9f91717d5ca766..11d248673ad44c2efa8683e804ab84e9692a54f6 100644 (file)
@@ -20,6 +20,7 @@
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/slab.h>
+#include <linux/compiler.h>
 
 struct crypto_pcbc_ctx {
        struct crypto_cipher *child;
@@ -146,7 +147,7 @@ static int crypto_pcbc_decrypt_inplace(struct skcipher_request *req,
        unsigned int nbytes = walk->nbytes;
        u8 *src = walk->src.virt.addr;
        u8 *iv = walk->iv;
-       u8 tmpbuf[bsize] __attribute__ ((aligned(__alignof__(u32))));
+       u8 tmpbuf[bsize] __aligned(__alignof__(u32));
 
        do {
                memcpy(tmpbuf, src, bsize);