[lustre-devel] [PATCH 27/27] lnet: fix clang build errors
James Simmons <[email protected]> Mon, 17 Apr 2023 09:47:23 -0400
| Newsgroups | org.lustre.lists.lustre-devel |
|---|---|
| Message-ID | <[email protected]> |
From: Timothy Day <[email protected]> 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. WC-bug-id: https://jira.whamcloud.com/browse/LU-16518 Lustre-commit: b0297a1056a4b0ee65 ("LU-16518 lnet: fix clang build errors") Signed-off-by: Timothy Day <[email protected]> Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/50318 Reviewed-by: Neil Brown <[email protected]> Reviewed-by: Chris Horn <[email protected]> Reviewed-by: Frank Sehr <[email protected]> Reviewed-by: jsimmons <[email protected]> Reviewed-by: Oleg Drokin <[email protected]> Signed-off-by: James Simmons <[email protected]> --- include/uapi/linux/lnet/lnet-types.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/uapi/linux/lnet/lnet-types.h b/include/uapi/linux/lnet/lnet-types.h index 6c6a66eb..959d9af 100644 --- a/include/uapi/linux/lnet/lnet-types.h +++ b/include/uapi/linux/lnet/lnet-types.h @@ -60,9 +60,9 @@ #define LNET_RESERVED_PORTAL 0 /** wildcard NID that matches any end-point address */ -#define LNET_NID_ANY ((lnet_nid_t)(-1)) +#define LNET_NID_ANY (~(lnet_nid_t) 0) /** wildcard PID that matches any lnet_pid_t */ -#define LNET_PID_ANY ((lnet_pid_t)(-1)) +#define LNET_PID_ANY (~(lnet_pid_t) 0) static inline int LNET_NID_IS_ANY(const struct lnet_nid *nid) { -- 1.8.3.1 _______________________________________________ lustre-devel mailing list [email protected] http://lists.lustre.org/listinfo.cgi/lustre-devel-lustre.org