Whamcloud - gitweb
LU-8191 ptlrpc: add missing headers 80/51480/2
authorTimothy Day <timday@amazon.com>
Fri, 23 Jun 2023 20:49:08 +0000 (20:49 +0000)
committerOleg Drokin <green@whamcloud.com>
Fri, 14 Jul 2023 03:09:21 +0000 (03:09 +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.

Test-Parameters: trivial
Signed-off-by: Timothy Day <timday@amazon.com>
Change-Id: Idd8fa747a671079aba2b691ef23cc7564e5e2430
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/51480
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Neil Brown <neilb@suse.de>
Reviewed-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Reviewed-by: jsimmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/ptlrpc/layout.c
lustre/ptlrpc/nodemap_handler.c
lustre/ptlrpc/pack_server.c
lustre/ptlrpc/wiretest.c

index cb4e150..d471fc3 100644 (file)
@@ -55,6 +55,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 159ea99..5114528 100644 (file)
@@ -32,7 +32,9 @@
 #include <lustre_net.h>
 #include <lustre_acl.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
@@ -1881,9 +1883,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 3cc4fcf..3479b8e 100644 (file)
@@ -29,6 +29,7 @@
 
 #define DEBUG_SUBSYSTEM S_RPC
 
+#include <lustre_swab.h>
 #include <llog_swab.h>
 #include <obd_class.h>
 
index da714f0..2b7ba62 100644 (file)
@@ -44,6 +44,7 @@
 #include <uapi/linux/lustre/lustre_lfsck_user.h>
 #include <uapi/linux/lustre/lustre_cfg.h>
 
+#include "ptlrpc_internal.h"
 
 void lustre_assert_wire_constants(void)
 {