All of lore.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <gregkh@linuxfoundation.org>
To: linux-aspeed@lists.ozlabs.org
Subject: [PATCH] usb: gadget: Fix unsigned comparison with less than zero
Date: Fri, 24 Jun 2022 13:42:02 +0200	[thread overview]
Message-ID: <YrWjCnNJohij691b@kroah.com> (raw)
In-Reply-To: <20220623084347.38207-1-jiapeng.chong@linux.alibaba.com>

On Thu, Jun 23, 2022 at 04:43:47PM +0800, Jiapeng Chong wrote:
> This was found by coccicheck:
> 
> ./drivers/usb/gadget/udc/aspeed_udc.c:496:8-13: WARNING: Unsigned expression compared with zero: chunk >= 0.

What does this mean?  Where is the error?

Please explain the reason for changes, not just the output of a random
tool that you ran on the code.

> Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>

What commit does this fix?

thanks,

greg k-h

WARNING: multiple messages have this Message-ID (diff)
From: Greg KH <gregkh@linuxfoundation.org>
To: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Cc: neal_liu@aspeedtech.com, balbi@kernel.org, joel@jms.id.au,
	andrew@aj.id.au, sumit.semwal@linaro.org,
	christian.koenig@amd.com, linux-aspeed@lists.ozlabs.org,
	linux-usb@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org, linux-media@vger.kernel.org,
	dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org
Subject: Re: [PATCH] usb: gadget: Fix unsigned comparison with less than zero
Date: Fri, 24 Jun 2022 13:42:02 +0200	[thread overview]
Message-ID: <YrWjCnNJohij691b@kroah.com> (raw)
In-Reply-To: <20220623084347.38207-1-jiapeng.chong@linux.alibaba.com>

On Thu, Jun 23, 2022 at 04:43:47PM +0800, Jiapeng Chong wrote:
> This was found by coccicheck:
> 
> ./drivers/usb/gadget/udc/aspeed_udc.c:496:8-13: WARNING: Unsigned expression compared with zero: chunk >= 0.

What does this mean?  Where is the error?

Please explain the reason for changes, not just the output of a random
tool that you ran on the code.

> Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>

What commit does this fix?

thanks,

greg k-h

WARNING: multiple messages have this Message-ID (diff)
From: Greg KH <gregkh@linuxfoundation.org>
To: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Cc: neal_liu@aspeedtech.com, balbi@kernel.org, joel@jms.id.au,
	andrew@aj.id.au, sumit.semwal@linaro.org,
	christian.koenig@amd.com, linux-aspeed@lists.ozlabs.org,
	linux-usb@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org, linux-media@vger.kernel.org,
	dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org
Subject: Re: [PATCH] usb: gadget: Fix unsigned comparison with less than zero
Date: Fri, 24 Jun 2022 13:42:02 +0200	[thread overview]
Message-ID: <YrWjCnNJohij691b@kroah.com> (raw)
In-Reply-To: <20220623084347.38207-1-jiapeng.chong@linux.alibaba.com>

On Thu, Jun 23, 2022 at 04:43:47PM +0800, Jiapeng Chong wrote:
> This was found by coccicheck:
> 
> ./drivers/usb/gadget/udc/aspeed_udc.c:496:8-13: WARNING: Unsigned expression compared with zero: chunk >= 0.

What does this mean?  Where is the error?

Please explain the reason for changes, not just the output of a random
tool that you ran on the code.

> Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>

What commit does this fix?

thanks,

greg k-h

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

WARNING: multiple messages have this Message-ID (diff)
From: Greg KH <gregkh@linuxfoundation.org>
To: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Cc: balbi@kernel.org, linux-aspeed@lists.ozlabs.org, andrew@aj.id.au,
	neal_liu@aspeedtech.com, linux-usb@vger.kernel.org,
	linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org,
	sumit.semwal@linaro.org, linaro-mm-sig@lists.linaro.org,
	joel@jms.id.au, christian.koenig@amd.com,
	linux-arm-kernel@lists.infradead.org,
	linux-media@vger.kernel.org
Subject: Re: [PATCH] usb: gadget: Fix unsigned comparison with less than zero
Date: Fri, 24 Jun 2022 13:42:02 +0200	[thread overview]
Message-ID: <YrWjCnNJohij691b@kroah.com> (raw)
In-Reply-To: <20220623084347.38207-1-jiapeng.chong@linux.alibaba.com>

On Thu, Jun 23, 2022 at 04:43:47PM +0800, Jiapeng Chong wrote:
> This was found by coccicheck:
> 
> ./drivers/usb/gadget/udc/aspeed_udc.c:496:8-13: WARNING: Unsigned expression compared with zero: chunk >= 0.

What does this mean?  Where is the error?

Please explain the reason for changes, not just the output of a random
tool that you ran on the code.

> Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>

What commit does this fix?

thanks,

greg k-h

  reply	other threads:[~2022-06-24 11:42 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-23  8:43 [PATCH] usb: gadget: Fix unsigned comparison with less than zero Jiapeng Chong
2022-06-23  8:43 ` Jiapeng Chong
2022-06-23  8:43 ` Jiapeng Chong
2022-06-23  8:43 ` Jiapeng Chong
2022-06-24 11:42 ` Greg KH [this message]
2022-06-24 11:42   ` Greg KH
2022-06-24 11:42   ` Greg KH
2022-06-24 11:42   ` Greg KH
2022-06-29  5:51   ` 回复:[PATCH] " Jiapeng.Chong
2022-06-29  5:51     ` Jiapeng.Chong
2022-06-29  5:59     ` Greg KH
2022-06-29  5:59       ` Greg KH
2022-06-29  5:59       ` Greg KH
2022-06-29  5:59       ` Greg KH

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YrWjCnNJohij691b@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=linux-aspeed@lists.ozlabs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.