Whamcloud - gitweb
LU-18130 build: make nodemap helpers functions static 92/55992/2
authorShaun Tancheff <shaun.tancheff@hpe.com>
Sun, 11 Aug 2024 07:35:55 +0000 (14:35 +0700)
committerOleg Drokin <green@whamcloud.com>
Fri, 23 Aug 2024 22:03:50 +0000 (22:03 +0000)
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 <shaun.tancheff@hpe.com>
Change-Id: I25cf93870b15df55fbddd4c58de7c65688662552
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/55992
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: jsimmons <jsimmons@infradead.org>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-by: Maximilian Dilger <mdilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/ptlrpc/nodemap_handler.c

index 1d3b97c..afb16f4 100644 (file)
@@ -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;