Whamcloud - gitweb
LU-17259 lnet: kgnilnd_nl_get should return 0 on success 72/52972/3
authorShaun Tancheff <shaun.tancheff@hpe.com>
Fri, 3 Nov 2023 07:35:16 +0000 (02:35 -0500)
committerOleg Drokin <green@whamcloud.com>
Wed, 8 Nov 2023 22:08:21 +0000 (22:08 +0000)
Fix build failure
error: control reaches end of non-void function [-Werror=return-type]

Test-Parameters: trivial
Fixes: d15bfca078 ("LU-10391 lnet: migrate full LNet NI information collection")
Signed-off-by: Shaun Tancheff <shaun.tancheff@hpe.com>
Change-Id: I09dd76c46620107d6c3f89cf59b9d9190578ef60
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/52972
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Petros Koutoupis <petros.koutoupis@hpe.com>
Reviewed-by: Chris Horn <chris.horn@hpe.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lnet/klnds/gnilnd/gnilnd.c

index b31f3b3..c320d7d 100644 (file)
@@ -39,6 +39,7 @@ kgnilnd_nl_get(int cmd, struct sk_buff *msg, int type, void *data)
        tuns = &ni->ni_lnd_tunables.lnd_tun_u.lnd_gni;
        nla_put_u32(msg, LNET_NET_GNILND_TUNABLES_ATTR_LND_TIMEOUT,
                    kgnilnd_timeout());
+       return 0;
 }
 
 /* Primary entry points from LNET.  There are no guarantees against reentrance. */