crypto: mxs - Fix sparse non static symbol warning
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Wed, 8 Jan 2014 13:48:56 +0000 (21:48 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 15 Jan 2014 03:33:41 +0000 (11:33 +0800)
Fixes the following sparse warning:

drivers/crypto/mxs-dcp.c:103:1: warning:
 symbol 'global_mutex' was not declared. Should it be static?

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Acked-by: Marek Vasut <marex@denx.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/mxs-dcp.c

index d41917c555d52d1a690a0d3203c13291639dcd58..a6db7fa6f891acb89c0d2c3d06e8ae389aa903f1 100644 (file)
@@ -100,7 +100,7 @@ struct dcp_sha_req_ctx {
  * design of Linux Crypto API.
  */
 static struct dcp *global_sdcp;
-DEFINE_MUTEX(global_mutex);
+static DEFINE_MUTEX(global_mutex);
 
 /* DCP register layout. */
 #define MXS_DCP_CTRL                           0x00
This page took 0.025857 seconds and 5 git commands to generate.