crypto: ccp - Fix non static symbol warning
authorWei Yongjun <weiyongjun1@huawei.com>
Mon, 17 Oct 2016 15:08:50 +0000 (15:08 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 25 Oct 2016 03:08:17 +0000 (11:08 +0800)
Fixes the following sparse warning:

drivers/crypto/ccp/ccp-dev.c:44:6: warning:
 symbol 'ccp_error_codes' was not declared. Should it be static?

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Acked-by: Gary R Hook <gary.hook@amd.com>
Acked-by: Gary R Hook <gary.hook@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/ccp/ccp-dev.c

index cafa633aae10805f176d5654f597839bc3b66520..c25515a80d33230e76265f14c0dfded7eff779bb 100644 (file)
@@ -41,7 +41,7 @@ struct ccp_tasklet_data {
 };
 
 /* Human-readable error strings */
-char *ccp_error_codes[] = {
+static char *ccp_error_codes[] = {
        "",
        "ERR 01: ILLEGAL_ENGINE",
        "ERR 02: ILLEGAL_KEY_ID",