All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH -next] crypto: hisilicon - Make function sec_send_request() static
@ 2018-08-08  4:30 Wei Yongjun
  2018-08-08  9:51 ` Herbert Xu
  0 siblings, 1 reply; 2+ messages in thread
From: Wei Yongjun @ 2018-08-08  4:30 UTC (permalink / raw)
  To: kernel-janitors

Fixes the following sparse warning:

drivers/crypto/hisilicon/sec/sec_algs.c:396:5: warning:
 symbol 'sec_send_request' was not declared. Should it be static?

Fixes: 915e4e8413da ("crypto: hisilicon - SEC security accelerator driver")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
---
 drivers/crypto/hisilicon/sec/sec_algs.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/crypto/hisilicon/sec/sec_algs.c b/drivers/crypto/hisilicon/sec/sec_algs.c
index d69d3ce..03ba1df 100644
--- a/drivers/crypto/hisilicon/sec/sec_algs.c
+++ b/drivers/crypto/hisilicon/sec/sec_algs.c
@@ -393,7 +393,8 @@ static void sec_alg_free_el(struct sec_request_el *el,
 }
 
 /* queuelock must be held */
-int sec_send_request(struct sec_request *sec_req, struct sec_queue *queue)
+static int sec_send_request(struct sec_request *sec_req,
+			    struct sec_queue *queue)
 {
 	struct sec_request_el *el, *temp;
 	int ret = 0;


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH -next] crypto: hisilicon - Make function sec_send_request() static
  2018-08-08  4:30 [PATCH -next] crypto: hisilicon - Make function sec_send_request() static Wei Yongjun
@ 2018-08-08  9:51 ` Herbert Xu
  0 siblings, 0 replies; 2+ messages in thread
From: Herbert Xu @ 2018-08-08  9:51 UTC (permalink / raw)
  To: kernel-janitors

On Wed, Aug 08, 2018 at 04:30:09AM +0000, Wei Yongjun wrote:
> Fixes the following sparse warning:
> 
> drivers/crypto/hisilicon/sec/sec_algs.c:396:5: warning:
>  symbol 'sec_send_request' was not declared. Should it be static?
> 
> Fixes: 915e4e8413da ("crypto: hisilicon - SEC security accelerator driver")
> Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>

This is already fixed in the current tree.

Thanks,
-- 
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-08-08  9:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-08  4:30 [PATCH -next] crypto: hisilicon - Make function sec_send_request() static Wei Yongjun
2018-08-08  9:51 ` Herbert Xu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.