[openib-general] [PATCH] SDP warnings on x86_64

Libor Michalek libor at topspin.com
Mon Feb 14 13:07:00 PST 2005


On Mon, Feb 14, 2005 at 12:36:38PM -0800, Grant Grundler wrote:
> On Mon, Feb 14, 2005 at 11:29:44AM -0800, Libor Michalek wrote:
> >   Good idea, in three places I got rid of the cast, and then used an inline
> > in two other places. Here's the updated patch.
> 
> cool - thanks.  Can these two also be changed?

  Good catch, I added these two as well, and applied and commited
the changes.

-Libor

> > Index: infiniband/ulp/sdp/sdp_conn.c
> > ===================================================================
> > --- infiniband/ulp/sdp/sdp_conn.c	(revision 1778)
> > +++ infiniband/ulp/sdp/sdp_conn.c	(working copy)
> > @@ -1085,7 +1085,8 @@
> >  		conn->send_cq = ib_create_cq(conn->ca,
> >  					     sdp_cq_event_handler,
> >  					     NULL,
> > -					     (void *)conn->hashent,
> > +					     (void *)
> > +					     (unsigned long)conn->hashent,
> >  					     conn->send_cq_size);
> >  		if (IS_ERR(conn->send_cq)) {
> >  
> > @@ -1110,7 +1111,8 @@
> >  		conn->recv_cq = ib_create_cq(conn->ca,
> >  					     sdp_cq_event_handler,
> >  					     NULL,
> > -					     (void *)conn->hashent,
> > +					     (void *)
> > +					     (unsigned long)conn->hashent,
> >  					     conn->recv_cq_size);
> >  
> >  		if (IS_ERR(conn->recv_cq)) {
> 
> thanks,
> grant



More information about the general mailing list