public inbox for hail-devel@vger.kernel.org
 help / color / mirror / Atom feed
From: Jeff Garzik <jeff@garzik.org>
To: Pete Zaitcev <zaitcev@redhat.com>
Cc: Project Hail List <hail-devel@vger.kernel.org>
Subject: Re: [tabled patch 2/4] fix the selection of chunk
Date: Tue, 25 May 2010 18:44:11 -0400	[thread overview]
Message-ID: <4BFC52BB.7060509@garzik.org> (raw)
In-Reply-To: <20100521201945.28d2cce8@redhat.com>

On 05/21/2010 10:19 PM, Pete Zaitcev wrote:
> +static int object_node_select(int *nx, struct db_obj_ent *obj)
> +{
> +	int i;
> +	uint32_t nid;
> +	struct storage_node *stnode;
> +
> +	for (i = 0; i<  MAXWAY; i++) {
> +		nid = GUINT32_FROM_LE(obj->d.a.nidv[*nx]);
> +		if (nid) {
> +			stnode = stor_node_by_nid(nid);
> +			if (stnode) {
> +				if (stnode->up)
> +					return stnode;
> +				stor_node_put(stnode);
> +			}
> +		}
> +		*nx = (*nx + 1) % MAXWAY;
> +	}
> +	return NULL;
> +}


Did you compile or test this???

object.c: In function ‘object_node_select’:
object.c:1096: warning: return makes integer from pointer without a cast
object.c:1102: warning: return makes integer from pointer without a cast
object.c: In function ‘object_get_body’:
object.c:1220: warning: assignment makes pointer from integer without a cast

The code appears to be wanting to return a pointer.

Dropped patches 2-4, presuming they will be resent after being fixed

  reply	other threads:[~2010-05-25 22:44 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-22  2:19 [tabled patch 2/4] fix the selection of chunk Pete Zaitcev
2010-05-25 22:44 ` Jeff Garzik [this message]
2010-05-26  3:25   ` Pete Zaitcev

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=4BFC52BB.7060509@garzik.org \
    --to=jeff@garzik.org \
    --cc=hail-devel@vger.kernel.org \
    --cc=zaitcev@redhat.com \
    /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