Skip to content

Commit 03f5d8c

Browse files
committed
[CRYPTO] api: Proc functions should be marked as unused
The proc functions were incorrectly marked as used rather than unused. They may be unused if proc is disabled. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
1 parent dc87c39 commit 03f5d8c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎crypto/blkcipher.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ static int crypto_init_blkcipher_ops(struct crypto_tfm *tfm, u32 type, u32 mask)
386386
}
387387

388388
static void crypto_blkcipher_show(struct seq_file *m, struct crypto_alg *alg)
389-
__attribute_used__;
389+
__attribute__ ((unused));
390390
static void crypto_blkcipher_show(struct seq_file *m, struct crypto_alg *alg)
391391
{
392392
seq_printf(m, "type : blkcipher\n");

‎crypto/hash.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ static int crypto_init_hash_ops(struct crypto_tfm *tfm, u32 type, u32 mask)
4141
}
4242

4343
static void crypto_hash_show(struct seq_file *m, struct crypto_alg *alg)
44-
__attribute_used__;
44+
__attribute__ ((unused));
4545
static void crypto_hash_show(struct seq_file *m, struct crypto_alg *alg)
4646
{
4747
seq_printf(m, "type : hash\n");

0 commit comments

Comments
 (0)