summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWei Yongjun <weiyj.lk@gmail.com>2016-08-12 00:00:09 +0000
committerHerbert Xu <herbert@gondor.apana.org.au>2016-08-16 17:20:18 +0800
commitdabc7904a74c47ead9d40cc00d5e8b1946a0736c (patch)
treec59dc64b1c1979f64bc4649003bb3ddce31f2a15
parentb6ff2fdd429cffe83b576f2e1eed33a4b0f1e4fe (diff)
downloadlinux-dabc7904a74c47ead9d40cc00d5e8b1946a0736c.tar.gz
linux-dabc7904a74c47ead9d40cc00d5e8b1946a0736c.tar.bz2
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>
-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);
}