From 9558f28a46b4d7a5010e38571c3e6479d559fab9 Mon Sep 17 00:00:00 2001 From: Gian-Carlo DeFazio Date: Thu, 8 May 2025 10:12:02 -0700 Subject: [PATCH] LU-18988 kfilnd: add return value after LBUGs To get rid of compiler warnings of the kind "control reaches end of non-void function", add return statements after LBUGs. Signed-off-by: Gian-Carlo DeFazio Change-Id: Ie8596c7527fa68f88e807ca290157b4a4dc891cf Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/59157 Reviewed-by: Chris Horn Reviewed-by: Serguei Smirnov Reviewed-by: Oleg Drokin Tested-by: jenkins Tested-by: Maloo --- lnet/klnds/kfilnd/kfilnd_tn.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lnet/klnds/kfilnd/kfilnd_tn.c b/lnet/klnds/kfilnd/kfilnd_tn.c index 758c9d9..f22820c 100644 --- a/lnet/klnds/kfilnd/kfilnd_tn.c +++ b/lnet/klnds/kfilnd/kfilnd_tn.c @@ -567,12 +567,14 @@ static int kfilnd_tn_state_send_failed(struct kfilnd_transaction *tn, "Unexpected error during cancel tagged receive: rc=%d", rc); LBUG(); + return -EINVAL; } break; default: KFILND_TN_ERROR(tn, "Invalid %s event", tn_event_to_str(event)); LBUG(); + return -EINVAL; } } @@ -633,6 +635,7 @@ static int kfilnd_tn_state_tagged_recv_posted(struct kfilnd_transaction *tn, default: KFILND_TN_ERROR(tn, "Invalid %s event", tn_event_to_str(event)); LBUG(); + return -EINVAL; } } -- 1.8.3.1