projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cfbf8d4
)
IB/mlx4: Fix a sparse endianness warning
author
Bart Van Assche
<bvanassche@acm.org>
Mon, 10 Mar 2014 09:33:05 +0000
(10:33 +0100)
committer
Roland Dreier
<roland@purestorage.com>
Tue, 18 Mar 2014 05:23:52 +0000
(22:23 -0700)
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>
drivers/infiniband/hw/mlx4/qp.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/infiniband/hw/mlx4/qp.c
b/drivers/infiniband/hw/mlx4/qp.c
index d8f4d1fe849430ceb40eab47470d5af033884694..74993250523e7f81c810cedb15436db8dd0ff0b8 100644
(file)
--- 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,
return err;
}
- if (ah->av.eth.vlan !=
0xffff
) {
+ if (ah->av.eth.vlan !=
cpu_to_be16(0xffff)
) {
vlan = be16_to_cpu(ah->av.eth.vlan) & 0x0fff;
is_vlan = 1;
}