[openib-general] Re: [PATCH] [udapl] fix build for x86_64

James Lentini jlentini at netapp.com
Tue Jun 28 14:15:53 PDT 2005


Committed in revision 2739.

On Tue, 28 Jun 2005, Arlin Davis wrote:

ardavis> James Lentini wrote:
ardavis> 
ardavis> > 
ardavis> > Arlin,
ardavis> > 
ardavis> > Would this be a more standard way to do the cast:
ardavis> 
ardavis> yes, I agree.
ardavis> 
ardavis> > 
ardavis> > On Mon, 27 Jun 2005, Arlin Davis wrote:
ardavis> > 
ardavis> > > Signed-off-by: Arlin Davis <ardavis at ichips.intel.com>
ardavis> > > 
ardavis> > > Index: dapl/openib/dapl_ib_dto.h
ardavis> > > ===================================================================
ardavis> > > --- dapl/openib/dapl_ib_dto.h   (revision 2720)
ardavis> > > +++ dapl/openib/dapl_ib_dto.h   (working copy)
ardavis> > > @@ -88,7 +88,7 @@
ardavis> > >       total_len = 0;
ardavis> > >       wr.next = 0;
ardavis> > >       wr.num_sge = 0;
ardavis> > > -       wr.wr_id = (uint64_t)cookie;
ardavis> > > +       wr.wr_id = (uint64_t)(unsigned long)cookie;
ardavis> > 
ardavis> > 
ardavis> >           wr.wr_id = (uint64_t)(uintptr_t)cookie;
ardavis> > 
ardavis> > >       wr.sg_list = ds_array_p;
ardavis> > > 
ardavis> > >       for (i = 0; i < segments; i++ ) {
ardavis> > > @@ -162,7 +162,7 @@
ardavis> > >       wr.opcode = op_type;
ardavis> > >       wr.num_sge = 0;
ardavis> > >       wr.send_flags = 0;
ardavis> > > -       wr.wr_id = (uint64_t)cookie;
ardavis> > > +       wr.wr_id = (uint64_t)(unsigned long)cookie;
ardavis> > 
ardavis> > 
ardavis> >           wr.wr_id = (uint64_t)(uintptr_t)cookie;
ardavis> > 
ardavis> > >       wr.sg_list = ds_array_p;
ardavis> > >       total_len = 0;
ardavis> > > 
ardavis> > 
ardavis> 



More information about the general mailing list