IB/mlx4: Fix up SRQ limit_watermark endianness
commitd7dc3ccbe4dd1d37950da0138079e61d5be06ca9
authorRoland Dreier <rolandd@cisco.com>
Wed, 10 Oct 2007 02:59:06 +0000 (9 19:59 -0700)
committerRoland Dreier <rolandd@cisco.com>
Wed, 10 Oct 2007 02:59:06 +0000 (9 19:59 -0700)
tree6391db1b61ae23c34c351b617803d31dc9255804
parentca6de177acef8f2c7c3901ea583a263364ca7bbb
IB/mlx4: Fix up SRQ limit_watermark endianness

mlx4_srq_query() returns a big-endian 16-bit value through an int *,
which screws up sparse checking.  Fix this so that a CPU-endian value
is returned.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/mlx4/srq.c
drivers/net/mlx4/srq.c