diff options
author | Jason Gunthorpe <jgg@mellanox.com> | 2018-02-07 16:49:10 -0700 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2018-02-14 16:31:35 -0700 |
commit | 7061f28d8a2faf8131ac3a8ceb1af9850313e22c (patch) | |
tree | 36d977ce8ce1115db770435a49bc6a0d67df04e6 /drivers/infiniband/sw | |
parent | 5229f87efcc5a0c800e7f3b49264af984ea4aba9 (diff) | |
download | linux-stable-7061f28d8a2faf8131ac3a8ceb1af9850313e22c.tar.gz linux-stable-7061f28d8a2faf8131ac3a8ceb1af9850313e22c.tar.bz2 linux-stable-7061f28d8a2faf8131ac3a8ceb1af9850313e22c.zip |
rxe: Do not use 'struct sockaddr' in a uapi header
Linux has two 'linux/socket.h' files - and only the one in the kernel
defines struct sockaddr - the user space one does not.
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/sw')
-rw-r--r-- | drivers/infiniband/sw/rxe/rxe_av.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/infiniband/sw/rxe/rxe_av.c b/drivers/infiniband/sw/rxe/rxe_av.c index 7522d1af3ae2..7f1ae364088a 100644 --- a/drivers/infiniband/sw/rxe/rxe_av.c +++ b/drivers/infiniband/sw/rxe/rxe_av.c @@ -74,8 +74,9 @@ void rxe_av_fill_ip_info(struct rxe_av *av, struct ib_gid_attr *sgid_attr, union ib_gid *sgid) { - rdma_gid2ip(&av->sgid_addr._sockaddr, sgid); - rdma_gid2ip(&av->dgid_addr._sockaddr, &rdma_ah_read_grh(attr)->dgid); + rdma_gid2ip((struct sockaddr *)&av->sgid_addr, sgid); + rdma_gid2ip((struct sockaddr *)&av->dgid_addr, + &rdma_ah_read_grh(attr)->dgid); av->network_type = ib_gid_to_network_type(sgid_attr->gid_type, sgid); } |