RDMA/core: Annotate timeout as unsigned long
authorLeon Romanovsky <leonro@mellanox.com>
Thu, 11 Oct 2018 14:30:05 +0000 (17:30 +0300)
committerDoug Ledford <dledford@redhat.com>
Tue, 16 Oct 2018 17:34:01 +0000 (13:34 -0400)
commitdbace111e5b320682eee63d7173959a2b2bd9ccb
tree5f64c5d7ea0fb522b70f30e418f5576491b57109
parent9549c2bd094f0f54b8827d64886f5b1de370dff3
RDMA/core: Annotate timeout as unsigned long

The ucma users supply timeout in u32 format, it means that any number
with most significant bit set will be converted to negative value
by various rdma_*, cma_* and sa_query functions, which treat timeout
as int.

In the lowest level, the timeout is converted back to be unsigned long.
Remove this ambiguous conversion by updating all function signatures to
receive unsigned long.

Reported-by: Noa Osherovich <noaos@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/addr.c
drivers/infiniband/core/cma.c
drivers/infiniband/core/mad.c
drivers/infiniband/core/mad_priv.h
drivers/infiniband/core/sa.h
drivers/infiniband/core/sa_query.c
include/rdma/ib_addr.h
include/rdma/ib_cm.h
include/rdma/ib_sa.h
include/rdma/rdma_cm.h