IB: directly cast the sockaddr union to aockaddr
commitbad4cb582efa92465227bca4459e898942de877a
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 7 Aug 2019 16:44:12 +0000 (7 18:44 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Aug 2019 15:53:33 +0000 (9 17:53 +0200)
tree902e9bbf1095ddc3c7b7aefb7fb46e69fffd6389
parent4ee0a5228ad554d36a2e0ff68cdadeca7c414e79
IB: directly cast the sockaddr union to aockaddr

Like commit 641114d2af31 ("RDMA: Directly cast the sockaddr union to
sockaddr") we need to quiet gcc 9 from warning about this crazy union.
That commit did not fix all of the warnings in 4.19 and older kernels
because the logic in roce_resolve_route_from_path() was rewritten
between 4.19 and 5.2 when that change happened.

Cc: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/infiniband/core/sa_query.c