From: Wei Yongjun Date: Mon, 17 Oct 2016 15:08:50 +0000 (+0000) Subject: crypto: ccp - Fix non static symbol warning X-Git-Tag: v4.1.12-111.0.20170907_2225~53 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=76579e42f909405ae5951cd263842e08c964ef41;p=users%2Fjedix%2Flinux-maple.git crypto: ccp - Fix non static symbol warning Orabug: 26644685 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 Acked-by: Gary R Hook Acked-by: Gary R Hook Signed-off-by: Herbert Xu (cherry picked from commit ff4f44de44dbd98feecf8fa76e14353a3993b335) Signed-off-by: Somasundaram Krishnasamy Reviewed-by: Jack Vogel --- diff --git a/drivers/crypto/ccp/ccp-dev.c b/drivers/crypto/ccp/ccp-dev.c index cafa633aae108..c25515a80d332 100644 --- a/drivers/crypto/ccp/ccp-dev.c +++ b/drivers/crypto/ccp/ccp-dev.c @@ -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",