crypto: bcm - Make some symbols static
Fix sparse warnings: drivers/crypto/bcm/cipher.c:99:6: warning: symbol 'BCMHEADER' was not declared. Should it be static? drivers/crypto/bcm/cipher.c:2096:6: warning: symbol 'spu_no_incr_hash' was not declared. Should it be static? drivers/crypto/bcm/cipher.c:4823:5: warning: symbol 'bcm_spu_probe' was not declared. Should it be static? drivers/crypto/bcm/cipher.c:4867:5: warning: symbol 'bcm_spu_remove' was not declared. Should it be static? drivers/crypto/bcm/spu2.c:52:6: warning: symbol 'spu2_cipher_type_names' was not declared. Should it be static? drivers/crypto/bcm/spu2.c:56:6: warning: symbol 'spu2_cipher_mode_names' was not declared. Should it be static? drivers/crypto/bcm/spu2.c:60:6: warning: symbol 'spu2_hash_type_names' was not declared. Should it be static? drivers/crypto/bcm/spu2.c:66:6: warning: symbol 'spu2_hash_mode_names' was not declared. Should it be static? Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: YueHaibing <yuehaibing@huawei.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
@@ -49,21 +49,21 @@ enum spu2_proto_sel {
|
||||
SPU2_DTLS_AEAD = 10
|
||||
};
|
||||
|
||||
char *spu2_cipher_type_names[] = { "None", "AES128", "AES192", "AES256",
|
||||
static char *spu2_cipher_type_names[] = { "None", "AES128", "AES192", "AES256",
|
||||
"DES", "3DES"
|
||||
};
|
||||
|
||||
char *spu2_cipher_mode_names[] = { "ECB", "CBC", "CTR", "CFB", "OFB", "XTS",
|
||||
"CCM", "GCM"
|
||||
static char *spu2_cipher_mode_names[] = { "ECB", "CBC", "CTR", "CFB", "OFB",
|
||||
"XTS", "CCM", "GCM"
|
||||
};
|
||||
|
||||
char *spu2_hash_type_names[] = { "None", "AES128", "AES192", "AES256",
|
||||
static char *spu2_hash_type_names[] = { "None", "AES128", "AES192", "AES256",
|
||||
"Reserved", "Reserved", "MD5", "SHA1", "SHA224", "SHA256", "SHA384",
|
||||
"SHA512", "SHA512/224", "SHA512/256", "SHA3-224", "SHA3-256",
|
||||
"SHA3-384", "SHA3-512"
|
||||
};
|
||||
|
||||
char *spu2_hash_mode_names[] = { "CMAC", "CBC-MAC", "XCBC-MAC", "HMAC",
|
||||
static char *spu2_hash_mode_names[] = { "CMAC", "CBC-MAC", "XCBC-MAC", "HMAC",
|
||||
"Rabin", "CCM", "GCM", "Reserved"
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user