Whamcloud - gitweb
LU-8191 ptlrpc: add missing headers
authorTimothy Day <timday@amazon.com>
Thu, 28 Mar 2024 23:31:20 +0000 (16:31 -0700)
committerAndreas Dilger <adilger@whamcloud.com>
Sat, 30 Mar 2024 07:24:18 +0000 (07:24 +0000)
Missing headers for several c-files in ptlrpc
cause functions to be incorrectly marked as only
being used within their respective c-files. This
patch adds those missing headers. It also addresses
a couple minor style issues.

Lustre-change: https://review.whamcloud.com/51480
Lustre-commit: fba78a416621343aadeeb4d28df86e422b653bfe

Test-Parameters: trivial
Signed-off-by: Timothy Day <timday@amazon.com>
Change-Id: Idd8fa747a671079aba2b691ef23cc7564e5e2430
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/54618
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/ptlrpc/layout.c
lustre/ptlrpc/nodemap_handler.c
lustre/ptlrpc/wiretest.c

index 4acffe9..2d5921d 100644 (file)
@@ -57,6 +57,8 @@
 #include <lustre_acl.h>
 #include <lustre_nodemap.h>
 
+#include "ptlrpc_internal.h"
+
 /*
  * RQFs (see below) refer to two struct req_msg_field arrays describing the
  * client request and server reply, respectively.
index 057cf3f..ca8ec06 100644 (file)
@@ -33,7 +33,9 @@
 #include <lustre_acl.h>
 #include <lustre_eacl.h>
 #include <obd_class.h>
+
 #include "nodemap_internal.h"
+#include "ptlrpc_internal.h"
 
 #define HASH_NODEMAP_BKT_BITS 3
 #define HASH_NODEMAP_CUR_BITS 3
@@ -1882,9 +1884,9 @@ void nodemap_mod_exit(void)
  */
 int nodemap_mod_init(void)
 {
-       struct nodemap_config   *new_config;
-       struct lu_nodemap       *nodemap;
-       int                      rc = 0;
+       struct nodemap_config *new_config;
+       struct lu_nodemap *nodemap;
+       int rc = 0;
 
        rc = nodemap_procfs_init();
        if (rc != 0)
index 31d1e26..f56f0bc 100644 (file)
@@ -46,6 +46,7 @@
 #include <uapi/linux/lustre/lustre_cfg.h>
 #include <uapi/linux/lustre/lgss.h>
 
+#include "ptlrpc_internal.h"
 
 void lustre_assert_wire_constants(void)
 {