From: James Simmons Date: Wed, 2 Jul 2025 13:14:20 +0000 (-0400) Subject: LU-17000 utils: handle_yaml_no_op() has wrong signature X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=08eef833edc883dc59eea63b655245580f48bc87;p=fs%2Flustre-release.git LU-17000 utils: handle_yaml_no_op() has wrong signature The liblnetconfig library uses struct lookup_cmd_hdlr_tbl as a function lookup table. Those callbacks have a specific prototype but handle_yaml_no_op() is not define that way. Newer compilers will fail due to this mismatch. Test-Parameters: trivial Change-Id: Ib62664538939fcbedca936afd2edb3e8c68a182f Signed-off-by: James Simmons Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/60018 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Timothy Day Reviewed-by: Arshad Hussain Reviewed-by: Shaun Tancheff Reviewed-by: Oleg Drokin --- diff --git a/lnet/utils/lnetconfig/liblnetconfig.c b/lnet/utils/lnetconfig/liblnetconfig.c index c6dbbb9..05dc094 100644 --- a/lnet/utils/lnetconfig/liblnetconfig.c +++ b/lnet/utils/lnetconfig/liblnetconfig.c @@ -6269,7 +6269,8 @@ static int handle_yaml_discover(struct cYAML *tree, struct cYAML **show_rc, show_rc, err_rc); } -static int handle_yaml_no_op() +static int handle_yaml_no_op(struct cYAML *tree, struct cYAML **show_rc, + struct cYAML **err_rc) { return LUSTRE_CFG_RC_NO_ERR; }