]> git.baikalelectronics.ru Git - kernel.git/commit
rds: ib: force endiannes annotation
authorNicholas Mc Guire <hofrat@osadl.org>
Tue, 30 Apr 2019 03:12:57 +0000 (05:12 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 1 May 2019 21:15:36 +0000 (17:15 -0400)
commit2f3da351a1788ff053d9735777a0161f73be5ec0
treeb680bafcf468f7dbf3b601fad7d27ef82d53858e
parenta71113b6bf9de7963439237c92740e718eedd05a
rds: ib: force endiannes annotation

While the endiannes is being handled correctly as indicated by the comment
above the offending line - sparse was unhappy with the missing annotation
as be64_to_cpu() expects a __be64 argument. To mitigate this annotation
all involved variables are changed to a consistent __le64 and the
 conversion to uint64_t delayed to the call to rds_cong_map_updated().

Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
Acked-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/rds/ib_recv.c