[PATCH -next v2] chcr: Fix non static symbol warning

Subsystems: crypto api, the rest

STALE3643d

2 messages, 2 authors, 2016-08-26 · open the first message on its own page

[PATCH -next v2] chcr: Fix non static symbol warning

From: Wei Yongjun <hidden>
Date: 2016-08-26 14:21:08

From: Wei Yongjun <redacted>

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 <redacted>
---
v1 -> v2: cc netdev maillist
---
 drivers/crypto/chelsio/chcr_algo.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/crypto/chelsio/chcr_algo.c b/drivers/crypto/chelsio/chcr_algo.c
index ad8e353..e4ddb92 100644
--- a/drivers/crypto/chelsio/chcr_algo.c
+++ b/drivers/crypto/chelsio/chcr_algo.c
@@ -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;

Re: [PATCH -next v2] chcr: Fix non static symbol warning

From: Herbert Xu <herbert@gondor.apana.org.au>
Date: 2016-08-26 14:42:52

On Fri, Aug 26, 2016 at 02:21:08PM +0000, Wei Yongjun wrote:
From: Wei Yongjun <redacted>

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 <redacted>
Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
-- 
Email: Herbert Xu [off-list ref]
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help