]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net/rds: Fix new sparse warning
authorDavid Ahern <david.ahern@oracle.com>
Mon, 4 May 2015 15:51:38 +0000 (11:51 -0400)
committerSantosh Shilimkar <santosh.shilimkar@oracle.com>
Thu, 3 Nov 2016 16:46:21 +0000 (09:46 -0700)
commited743541a8d84f94aafd6d96ccd305724f406203
tree81a6b6766e94aa6413ae4d7f59066caca55b186d
parent938aaa6f8ea32e5adc7828ef5ea96f8d098639df
net/rds: Fix new sparse warning

c0adf54a109 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.

Orabug: 24817685

Signed-off-by: David Ahern <david.ahern@oracle.com>
Cc: shamir rabinovitch <shamir.rabinovitch@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit e2783717a71e9babfdd7c36c7e35b790d2c01022)
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
net/rds/ib_cm.c