summaryrefslogtreecommitdiffstats
path: root/drivers/crypto
diff options
context:
space:
mode:
authorWei Yongjun <weiyj.lk@gmail.com>2016-08-12 02:00:09 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2016-08-16 11:20:18 +0200
commitdabc7904a74c47ead9d40cc00d5e8b1946a0736c (patch)
treec59dc64b1c1979f64bc4649003bb3ddce31f2a15 /drivers/crypto
parentcrypto: sun4i-ss - fix indentation of two crypto alg (diff)
downloadlinux-dabc7904a74c47ead9d40cc00d5e8b1946a0736c.tar.xz
linux-dabc7904a74c47ead9d40cc00d5e8b1946a0736c.zip
crypto: ccp - Fix non static symbol warning
Fixes the following sparse warning: drivers/crypto/ccp/ccp-dev.c:62:14: warning: symbol 'ccp_increment_unit_ordinal' was not declared. Should it be static? Signed-off-by: Wei Yongjun <weiyj.lk@gmail.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto')
-rw-r--r--drivers/crypto/ccp/ccp-dev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/ccp/ccp-dev.c b/drivers/crypto/ccp/ccp-dev.c
index 38a98d879f82..5d36eeff6d26 100644
--- a/drivers/crypto/ccp/ccp-dev.c
+++ b/drivers/crypto/ccp/ccp-dev.c
@@ -59,7 +59,7 @@ static struct ccp_device *ccp_rr;
/* Ever-increasing value to produce unique unit numbers */
static atomic_t ccp_unit_ordinal;
-unsigned int ccp_increment_unit_ordinal(void)
+static unsigned int ccp_increment_unit_ordinal(void)
{
return atomic_inc_return(&ccp_unit_ordinal);
}