crypto: ccp - Fix non static symbol warning
authorWei Yongjun <weiyj.lk@gmail.com>
Fri, 12 Aug 2016 00:00:09 +0000 (00:00 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 16 Aug 2016 09:20:18 +0000 (17:20 +0800)
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>
drivers/crypto/ccp/ccp-dev.c

index 38a98d879f820045954b66e1f0843ffdba3a7cba..5d36eeff6d2604655adba2e7afe55cf678320449 100644 (file)
@@ -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);
 }