Whamcloud - gitweb
LU-17867 ko2iblnd: gcc bug work around 72/55172/4
authorJames Simmons <jsimmons@infradead.org>
Wed, 22 May 2024 14:53:24 +0000 (10:53 -0400)
committerAndreas Dilger <adilger@whamcloud.com>
Tue, 28 May 2024 12:56:06 +0000 (12:56 +0000)
commitf8e3c4aa633b86b9b77f565a424bda176944bea4
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>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/55172
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Chris Horn <chris.horn@hpe.com>
Reviewed-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Reviewed-by: Shaun Tancheff <shaun.tancheff@hpe.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lnet/klnds/o2iblnd/o2iblnd_cb.c