Re: [PATCH v2a] 9prdma: RDMA Transport Support for 9P

From: Roland Dreier
Date: Fri Oct 10 2008 - 17:43:38 EST


> > (in cq_comp_handler)
> > + struct p9_rdma_context *c = (void *)wc.wr_id;

cast here should be

struct p9_rdma_context *c = (void *) (unsigned long) wc.wr_id;

> ...
> > +static int
> > +post_recv(struct p9_trans *trans, struct p9_rdma_context *c)
> > + wr.wr_id = (u64)c;

and this should be

wr.wr_id = (unsigned long) c;

> Ouch. I get warnings on these two compiling on 32-bit systems.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/