You have:

 > +struct fw_ri_send_wr {
 ...
 > +    __be16 wrid;

 > +struct fw_ri_recv_wr {
 ...
 > +    __be16 wrid;

But also:

 > +static inline void init_wr_hdr(union t4_wr *wqe, u16 wrid,
 > +                           enum fw_wr_opcodes opcode, u8 flags, u8 len16)
 ...
 > +    wqe->send.wrid = wrid;

and similar for recv.wrid in qp.c.  sparse correctly warns about this
endianness clash.

The intention is that the device just treats wrid as opaque I assume so
I think the correct fix is to go from __be16 to u16 in the structure
declarations.

 - R.
-- 
Roland Dreier <rola...@cisco.com> || For corporate legal information go to:
http://www.cisco.com/web/about/doing_business/legal/cri/index.html
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to