Whamcloud - gitweb
LU-17867 ko2iblnd: gcc bug work around 72/55172/3
authorJames Simmons <jsimmons@infradead.org>
Wed, 22 May 2024 14:53:24 +0000 (10:53 -0400)
committerJames Simmons <jsimmons@infradead.org>
Wed, 22 May 2024 14:54:59 +0000 (10:54 -0400)
commit442474f296228453904ed859844b6a6bbdd388e3
tree3446f031087d35779406c62f2c90932269d10498
parenta13fc434c57fd72e5f8908a8a197fca1a0d373e5
LU-17867 ko2iblnd: gcc bug work around

Gcc 11 reports
 error: array subscript 'struct sockaddr_in6[0]' is partly
 outside array bounds of 'struct sockaddr[1]'

due to a bug in gcc that it becomes confused with the union.
To work around this we move to struct sockaddr_storage from
struct sockaddr.

Test-Parameters: trivial
Change-Id: I586042d6e3c59be8c63e2821659cf9d3bcdac8e3
Signed-off-by: James Simmons <jsimmons@infradead.org>
lnet/klnds/o2iblnd/o2iblnd_cb.c