From cf6a38e3e1fc73e440f4d15bbdcdab972bddc46a Mon Sep 17 00:00:00 2001 From: Shaun Tancheff Date: Sun, 11 Aug 2024 14:35:55 +0700 Subject: [PATCH] LU-18130 build: make nodemap helpers functions static Resolve build error: .../nodemap_handler.c:570:5: error: no previous prototype \ for 'nodemap_add_idmap_range' [-Werror=missing-prototypes] Test-Parameters: trivial Fixes: 8445f7b92f ("LU-17922 utils: added idmap range functionality") Signed-off-by: Shaun Tancheff Change-Id: I25cf93870b15df55fbddd4c58de7c65688662552 Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/55992 Tested-by: jenkins Tested-by: Maloo Reviewed-by: jsimmons Reviewed-by: Andreas Dilger Reviewed-by: Jian Yu Reviewed-by: Maximilian Dilger Reviewed-by: Oleg Drokin --- lustre/ptlrpc/nodemap_handler.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lustre/ptlrpc/nodemap_handler.c b/lustre/ptlrpc/nodemap_handler.c index 1d3b97c..afb16f4 100644 --- a/lustre/ptlrpc/nodemap_handler.c +++ b/lustre/ptlrpc/nodemap_handler.c @@ -567,8 +567,9 @@ out: return rc; } -int nodemap_add_idmap_range(const char *nodemap_name, enum nodemap_id_type id_type, - const __u32 map[2], const u32 range_count) +static int nodemap_add_idmap_range(const char *nodemap_name, + enum nodemap_id_type id_type, + const __u32 map[2], const u32 range_count) { int rc = 0; int i; @@ -663,8 +664,9 @@ out: } EXPORT_SYMBOL(nodemap_del_idmap); -int nodemap_del_idmap_range(const char *nodemap_name, enum nodemap_id_type id_type, - const __u32 map[2], const u32 range_count) +static int nodemap_del_idmap_range(const char *nodemap_name, + enum nodemap_id_type id_type, + const __u32 map[2], const u32 range_count) { int rc = 0; int i; -- 1.8.3.1