Whamcloud - gitweb
LU-16518 lnet: fix clang build errors 18/50318/3
authorTimothy Day <timday@amazon.com>
Tue, 28 Feb 2023 18:48:04 +0000 (18:48 +0000)
committerOleg Drokin <green@whamcloud.com>
Tue, 11 Apr 2023 20:10:37 +0000 (20:10 +0000)
commitb0297a1056a4b0ee65f4405edd407a519db594e9
tree864d78be730717bf39b4c6b46ee09ee54e45a9bc
parenta7cd87862470899fe6ceb08b50267ea058221a13
LU-16518 lnet: fix clang build errors

LNET_PID_ANY and LNET_NID_ANY were defined outside
the range of an u64. They were moved from -1 to the
maximum value for u64.

LNET_NID_ANY was used in an instance where LNET_NET_ANY
should have been used.

Initialize a variable which could potentially be left
uninitialized.

Fixed a minor style issue.

Signed-off-by: Timothy Day <timday@amazon.com>
Change-Id: I61c8b33d98fdaa4b7a4846d0061a483664e4f652
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/50318
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Neil Brown <neilb@suse.de>
Reviewed-by: Chris Horn <chris.horn@hpe.com>
Reviewed-by: Frank Sehr <fsehr@whamcloud.com>
Reviewed-by: jsimmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/include/uapi/linux/lnet/lnet-types.h
lnet/utils/lnetconfig/cyaml.c
lnet/utils/lnetconfig/liblnetconfig.c