From: Wei Yongjun Date: Wed, 8 Jan 2014 13:48:56 +0000 (+0800) Subject: crypto: mxs - Fix sparse non static symbol warning X-Git-Tag: v4.13~8030^2~1 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=fe70be5c8885d07a5c12f3ad97e6f226b0e8cae3;p=mirror_ubuntu-bionic-kernel.git crypto: mxs - Fix sparse non static symbol warning 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 Acked-by: Marek Vasut Signed-off-by: Herbert Xu --- diff --git a/drivers/crypto/mxs-dcp.c b/drivers/crypto/mxs-dcp.c index d41917c555d5..a6db7fa6f891 100644 --- a/drivers/crypto/mxs-dcp.c +++ b/drivers/crypto/mxs-dcp.c @@ -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