mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: David Howells <dhowells@redhat.com>
To: Chen Gang <gang.chen@asianux.com>
Cc: dhowells@redhat.com, james.l.morris@oracle.com,
	Rusty Russell <rusty@rustcorp.com.au>,
	dmitry.kasatkin@intel.com, andriy.shevchenko@linux.intel.com,
	Andrew Morton <akpm@linux-foundation.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] lib/mpi/mpicoder.c: looping issue, need stop when equal to zero, found by 'EXTRA_FLAGS=-W'.
Date: Mon, 20 May 2013 11:13:17 +0100	[thread overview]
Message-ID: <14484.1369044797@warthog.procyon.org.uk> (raw)
In-Reply-To: <5199AFC9.8050607@asianux.com>

Chen Gang <gang.chen@asianux.com> wrote:

> For 'while' looping, need stop when 'nbytes == 0', or will cause issue.
> ('nbytes' is size_t which is always bigger or equal than zero).
> 
> The related warning: (with EXTRA_CFLAGS=-W)
>   lib/mpi/mpicoder.c:40:2: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]

Acked-by: David Howells <dhowells@redhat.com>

  reply	other threads:[~2013-05-20 10:13 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-20  5:08 Chen Gang
2013-05-20 10:13 ` David Howells [this message]
2013-05-20 10:26   ` Chen Gang

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=14484.1369044797@warthog.procyon.org.uk \
    --to=dhowells@redhat.com \
    --cc=akpm@linux-foundation.org \
    --cc=andriy.shevchenko@linux.intel.com \
    --cc=dmitry.kasatkin@intel.com \
    --cc=gang.chen@asianux.com \
    --cc=james.l.morris@oracle.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rusty@rustcorp.com.au \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome