android_kernel_motorola_sm6225/drivers/infiniband/hw
Paul Bolle 710a31102b RDMA/cxgb4: "cookie" can stay in host endianness
Work requests are passed between the host and the firmware with a
"cookie".  This cookie is swapped to big-endian when passed to the
firmware and back to host endianness on return.  This swapping seems
to be implemented incorrectly.  Moreover, the byte swapping triggers
GCC warnings on 32 bit:

    drivers/infiniband/hw/cxgb4/cm.c: In function ‘passive_ofld_conn_reply’:
    drivers/infiniband/hw/cxgb4/cm.c:2803:12: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
    drivers/infiniband/hw/cxgb4/cm.c: In function ‘send_fw_pass_open_req’:
    drivers/infiniband/hw/cxgb4/cm.c:2941:16: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
    [...]

But byte swapping isn't needed as the firmware doesn't actually touch
the cookie.  Dropping byte swapping makes the warnings go away too.

Signed-off-by: Paul Bolle <pebolle@tiscali.nl>
Signed-off-by: Roland Dreier <roland@purestorage.com>
2013-02-14 15:55:05 -08:00
..
amso1100 Drivers: infinband: remove __dev* attributes. 2013-01-03 15:57:15 -08:00
cxgb3 RDMA/cxgb3: use WARN 2012-11-26 11:08:16 -08:00
cxgb4 RDMA/cxgb4: "cookie" can stay in host endianness 2013-02-14 15:55:05 -08:00
ehca Drivers: infinband: remove __dev* attributes. 2013-01-03 15:57:15 -08:00
ipath Drivers: infinband: remove __dev* attributes. 2013-01-03 15:57:15 -08:00
mlx4 IB/mlx4: Fix spinlock order to avoid lockdep warnings 2012-11-29 12:14:45 -08:00
mthca Drivers: infinband: remove __dev* attributes. 2013-01-03 15:57:15 -08:00
nes Drivers: infinband: remove __dev* attributes. 2013-01-03 15:57:15 -08:00
ocrdma RDMA/ocrdma: Fix CQE expansion of unsignaled WQE 2012-09-14 10:40:58 -07:00
qib IB/qib: Fix for broken sparse warning fix 2013-02-05 09:43:09 -08:00