aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/cxgb4/device.c
diff options
context:
space:
mode:
authorVipul Pandya <vipul@chelsio.com>2013-01-07 13:12:00 +0000
committerRoland Dreier <roland@purestorage.com>2013-02-14 15:51:58 -0800
commitef5d6355ed4bcf574e8473c3ce667cbf6c66a0ee (patch)
tree194ade849c55b53f8189f7a46bdd3697ffdbdb0a /drivers/infiniband/hw/cxgb4/device.c
parentRDMA/cxgb4: Insert hwtid in pass_accept_req instead in pass_establish (diff)
downloadlinux-dev-ef5d6355ed4bcf574e8473c3ce667cbf6c66a0ee.tar.xz
linux-dev-ef5d6355ed4bcf574e8473c3ce667cbf6c66a0ee.zip
RDMA/cxgb4: Address sparse warnings
Fixe the following types of sparse warnings - cast to pointer from integer of different size - cast from pointer to integer of different size - incorrect type in assignment (different base types) - incorrect type in argument 1 (different base types) - cast from restricted __be64 - cast from restricted __be32 Signed-off-by: Vipul Pandya <vipul@chelsio.com> Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/infiniband/hw/cxgb4/device.c')
-rw-r--r--drivers/infiniband/hw/cxgb4/device.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/cxgb4/device.c b/drivers/infiniband/hw/cxgb4/device.c
index ba11c76c0b5a..dc6adb213cd6 100644
--- a/drivers/infiniband/hw/cxgb4/device.c
+++ b/drivers/infiniband/hw/cxgb4/device.c
@@ -797,7 +797,8 @@ static int c4iw_uld_rx_handler(void *handle, const __be64 *rsp,
"RSS %#llx, FL %#llx, len %u\n",
pci_name(ctx->lldi.pdev), gl->va,
(unsigned long long)be64_to_cpu(*rsp),
- (unsigned long long)be64_to_cpu(*(u64 *)gl->va),
+ (unsigned long long)be64_to_cpu(
+ *(__force __be64 *)gl->va),
gl->tot_len);
return 0;