提交 e2783717 编写于 作者: D David Ahern 提交者: David S. Miller

net/rds: Fix new sparse warning

c0adf54a introduced new sparse warnings:
  CHECK   /home/dahern/kernels/linux.git/net/rds/ib_cm.c
net/rds/ib_cm.c:191:34: warning: incorrect type in initializer (different base types)
net/rds/ib_cm.c:191:34:    expected unsigned long long [unsigned] [usertype] dp_ack_seq
net/rds/ib_cm.c:191:34:    got restricted __be64 <noident>
net/rds/ib_cm.c:194:51: warning: cast to restricted __be64

The temporary variable for sequence number should have been declared as __be64
rather than u64. Make it so.
Signed-off-by: NDavid Ahern <david.ahern@oracle.com>
Cc: shamir rabinovitch <shamir.rabinovitch@oracle.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 a2d4fcb8
...@@ -188,7 +188,7 @@ void rds_ib_cm_connect_complete(struct rds_connection *conn, struct rdma_cm_even ...@@ -188,7 +188,7 @@ void rds_ib_cm_connect_complete(struct rds_connection *conn, struct rdma_cm_even
* Since dp_ack_seq is 64-bit extended load operations can be * Since dp_ack_seq is 64-bit extended load operations can be
* used so go through get_unaligned to avoid unaligned errors. * used so go through get_unaligned to avoid unaligned errors.
*/ */
u64 dp_ack_seq = get_unaligned(&dp->dp_ack_seq); __be64 dp_ack_seq = get_unaligned(&dp->dp_ack_seq);
if (dp_ack_seq) if (dp_ack_seq)
rds_send_drop_acked(conn, be64_to_cpu(dp_ack_seq), rds_send_drop_acked(conn, be64_to_cpu(dp_ack_seq),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册