From e390b5b00bbef3e253c6513e60b9fa630db584e9 Mon Sep 17 00:00:00 2001 From: Sebastien Buisson Date: Thu, 8 Aug 2024 15:52:40 +0200 Subject: [PATCH] LU-18117 obdclass: fix llog_validate_record prototype Fix prototype of function llog_validate_record() to make it static inline, otherwise build fails on some platforms (e.g. ubuntu 2404). Fixes: 96d8987a36 ("LU-14714 mgc: server to mount without local config") Test-Parameters: trivial Signed-off-by: Sebastien Buisson Change-Id: Ica8cbb9bffdb2e7abd5284ab0bbd3d026961bae1 Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/55964 Reviewed-by: James Simmons Reviewed-by: Andreas Dilger Tested-by: jenkins --- lustre/obdclass/llog.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lustre/obdclass/llog.c b/lustre/obdclass/llog.c index a45d0d5..f1a8a79 100644 --- a/lustre/obdclass/llog.c +++ b/lustre/obdclass/llog.c @@ -1538,14 +1538,16 @@ out_close: EXPORT_SYMBOL(llog_backup); /* just count processed records */ -int llog_validate_record(const struct lu_env *env, struct llog_handle *llh, - struct llog_rec_hdr *rec, void *data) +static inline int llog_validate_record(const struct lu_env *env, + struct llog_handle *llh, + struct llog_rec_hdr *rec, void *data) { int *recs = data; (*recs)++; return 0; } + /* validate plain llog by reading all its records */ int llog_validate(const struct lu_env *env, struct llog_ctxt *ctxt, char *name) { -- 1.8.3.1