diff --git a/crypto/blkcipher.c b/crypto/blkcipher.c
index b5befe8c3a96ee1a4c73b708823b76a2f9bb06bc..bf459179efe366a97864303df374cc92e44e2d0b 100644
--- a/crypto/blkcipher.c
+++ b/crypto/blkcipher.c
@@ -386,7 +386,7 @@ static int crypto_init_blkcipher_ops(struct crypto_tfm *tfm, u32 type, u32 mask)
 }
 
 static void crypto_blkcipher_show(struct seq_file *m, struct crypto_alg *alg)
-	__attribute_used__;
+	__attribute__ ((unused));
 static void crypto_blkcipher_show(struct seq_file *m, struct crypto_alg *alg)
 {
 	seq_printf(m, "type         : blkcipher\n");
diff --git a/crypto/hash.c b/crypto/hash.c
index 12c4514f3478df49786e7fe36009bb1e4fa95fd6..4ccd22deef399aa477ba9e5c958d1516ff5dc50f 100644
--- a/crypto/hash.c
+++ b/crypto/hash.c
@@ -41,7 +41,7 @@ static int crypto_init_hash_ops(struct crypto_tfm *tfm, u32 type, u32 mask)
 }
 
 static void crypto_hash_show(struct seq_file *m, struct crypto_alg *alg)
-	__attribute_used__;
+	__attribute__ ((unused));
 static void crypto_hash_show(struct seq_file *m, struct crypto_alg *alg)
 {
 	seq_printf(m, "type         : hash\n");