summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/mlx4
diff options
context:
space:
mode:
authorRoland Dreier <rolandd@cisco.com>2008-04-17 06:01:07 +0200
committerRoland Dreier <rolandd@cisco.com>2008-04-17 06:01:07 +0200
commitd2ae16d576086bd3e539f4e94f95df4e37ea2419 (patch)
tree1e8158f0f278116c1f43178dbb8cb2a4dc0c4a02 /drivers/infiniband/hw/mlx4
parentIB/ipath: Fix sparse warning about shadowed symbol (diff)
downloadlinux-d2ae16d576086bd3e539f4e94f95df4e37ea2419.tar.xz
linux-d2ae16d576086bd3e539f4e94f95df4e37ea2419.zip
IB/mlx4: Endianness annotations
Trivial fixes to stamp_send_wqe(). Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/hw/mlx4')
-rw-r--r--drivers/infiniband/hw/mlx4/qp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/mlx4/qp.c b/drivers/infiniband/hw/mlx4/qp.c
index 958e205b6d7c..ac965ab28845 100644
--- a/drivers/infiniband/hw/mlx4/qp.c
+++ b/drivers/infiniband/hw/mlx4/qp.c
@@ -122,7 +122,7 @@ static void *get_send_wqe(struct mlx4_ib_qp *qp, int n)
*/
static void stamp_send_wqe(struct mlx4_ib_qp *qp, int n, int size)
{
- u32 *wqe;
+ __be32 *wqe;
int i;
int s;
int ind;
@@ -143,7 +143,7 @@ static void stamp_send_wqe(struct mlx4_ib_qp *qp, int n, int size)
buf = get_send_wqe(qp, n & (qp->sq.wqe_cnt - 1));
for (i = 64; i < s; i += 64) {
wqe = buf + i;
- *wqe = 0xffffffff;
+ *wqe = cpu_to_be32(0xffffffff);
}
}
}