Whamcloud - gitweb
LU-18117 obdclass: fix llog_validate_record prototype 64/55964/2
authorSebastien Buisson <sbuisson@ddn.com>
Thu, 8 Aug 2024 13:52:40 +0000 (15:52 +0200)
committerAndreas Dilger <adilger@whamcloud.com>
Thu, 8 Aug 2024 14:49:43 +0000 (14:49 +0000)
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 <sbuisson@ddn.com>
Change-Id: Ica8cbb9bffdb2e7abd5284ab0bbd3d026961bae1
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/55964
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
lustre/obdclass/llog.c

index a45d0d5..f1a8a79 100644 (file)
@@ -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)
 {