netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next] crypto: algif - fix warn: unsigned 'used' is never less than zero
@ 2015-03-25 14:29 Tadeusz Struk
  2015-03-25 15:45 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Tadeusz Struk @ 2015-03-25 14:29 UTC (permalink / raw)
  To: davem; +Cc: netdev, linux-crypto, herbert

Change type from unsigned long to int to fix an issue reported by kbuild robot:
crypto/algif_skcipher.c:596 skcipher_recvmsg_async() warn: unsigned 'used' is
never less than zero.

Signed-off-by: Tadeusz Struk <tadeusz.struk@intel.com>
---
 crypto/algif_skcipher.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/crypto/algif_skcipher.c b/crypto/algif_skcipher.c
index 8276f21..60496d4 100644
--- a/crypto/algif_skcipher.c
+++ b/crypto/algif_skcipher.c
@@ -537,7 +537,7 @@ static int skcipher_recvmsg_async(struct socket *sock, struct msghdr *msg,
 
 	while (iov_iter_count(&msg->msg_iter)) {
 		struct skcipher_async_rsgl *rsgl;
-		unsigned long used;
+		int used;
 
 		if (!ctx->used) {
 			err = skcipher_wait_for_data(sk, flags);

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

* Re: [PATCH net-next] crypto: algif - fix warn: unsigned 'used' is never less than zero
  2015-03-25 14:29 [PATCH net-next] crypto: algif - fix warn: unsigned 'used' is never less than zero Tadeusz Struk
@ 2015-03-25 15:45 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2015-03-25 15:45 UTC (permalink / raw)
  To: tadeusz.struk; +Cc: netdev, linux-crypto, herbert

From: Tadeusz Struk <tadeusz.struk@intel.com>
Date: Wed, 25 Mar 2015 07:29:19 -0700

> Change type from unsigned long to int to fix an issue reported by kbuild robot:
> crypto/algif_skcipher.c:596 skcipher_recvmsg_async() warn: unsigned 'used' is
> never less than zero.
> 
> Signed-off-by: Tadeusz Struk <tadeusz.struk@intel.com>

Applied.

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

end of thread, other threads:[~2015-03-25 15:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-25 14:29 [PATCH net-next] crypto: algif - fix warn: unsigned 'used' is never less than zero Tadeusz Struk
2015-03-25 15:45 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).