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>
#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.
#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
*/
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)
#define DEBUG_SUBSYSTEM S_RPC
+#include <lustre_swab.h>
#include <llog_swab.h>
#include <obd_class.h>
#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)
{