chcr: Fix non static symbol warning
authorWei Yongjun <weiyongjun1@huawei.com>
Fri, 26 Aug 2016 14:21:08 +0000 (14:21 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 27 Aug 2016 04:45:07 +0000 (21:45 -0700)
Fixes the following sparse warning:

drivers/crypto/chelsio/chcr_algo.c:593:5: warning:
 symbol 'cxgb4_is_crypto_q_full' was not declared. Should it be static?

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/crypto/chelsio/chcr_algo.c

index ad8e353cf897538fec5f68e3878a0114eeaa8e8c..e4ddb921d7b3e156ab7d3b68a59fbc709d853fed 100644 (file)
@@ -590,7 +590,7 @@ badkey_err:
        return -EINVAL;
 }
 
-int cxgb4_is_crypto_q_full(struct net_device *dev, unsigned int idx)
+static int cxgb4_is_crypto_q_full(struct net_device *dev, unsigned int idx)
 {
        int ret = 0;
        struct sge_ofld_txq *q;