diff options
author | Bart Van Assche <bvanassche@acm.org> | 2014-03-10 05:33:05 -0400 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2014-03-18 01:23:52 -0400 |
commit | 0e9855dbf43a9cd31df5f5f61a18e031ac1c4a82 (patch) | |
tree | 6a9f4bde5867737ef1ba03bd8336057e2b3580e2 | |
parent | cfbf8d4857c26a8a307fb7cd258074c9dcd8c691 (diff) |
IB/mlx4: Fix a sparse endianness warning
Fix the following warning for the mlx4 driver:
$ make M=drivers/infiniband C=2 CF=-D__CHECK_ENDIAN__
drivers/infiniband/hw/mlx4/qp.c:1885:31: warning: restricted __be16 degrades to integer
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Roland Dreier <roland@purestorage.com>
-rw-r--r-- | drivers/infiniband/hw/mlx4/qp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/mlx4/qp.c b/drivers/infiniband/hw/mlx4/qp.c index d8f4d1fe8494..74993250523e 100644 --- a/drivers/infiniband/hw/mlx4/qp.c +++ b/drivers/infiniband/hw/mlx4/qp.c | |||
@@ -1882,7 +1882,7 @@ static int build_mlx_header(struct mlx4_ib_sqp *sqp, struct ib_send_wr *wr, | |||
1882 | return err; | 1882 | return err; |
1883 | } | 1883 | } |
1884 | 1884 | ||
1885 | if (ah->av.eth.vlan != 0xffff) { | 1885 | if (ah->av.eth.vlan != cpu_to_be16(0xffff)) { |
1886 | vlan = be16_to_cpu(ah->av.eth.vlan) & 0x0fff; | 1886 | vlan = be16_to_cpu(ah->av.eth.vlan) & 0x0fff; |
1887 | is_vlan = 1; | 1887 | is_vlan = 1; |
1888 | } | 1888 | } |