From fba78a416621343aadeeb4d28df86e422b653bfe Mon Sep 17 00:00:00 2001 From: Timothy Day Date: Fri, 23 Jun 2023 20:49:08 +0000 Subject: [PATCH] LU-8191 ptlrpc: add missing headers 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 Change-Id: Idd8fa747a671079aba2b691ef23cc7564e5e2430 Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/51480 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Neil Brown Reviewed-by: Arshad Hussain Reviewed-by: jsimmons Reviewed-by: Oleg Drokin --- lustre/ptlrpc/layout.c | 2 ++ lustre/ptlrpc/nodemap_handler.c | 8 +++++--- lustre/ptlrpc/pack_server.c | 1 + lustre/ptlrpc/wiretest.c | 1 + 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/lustre/ptlrpc/layout.c b/lustre/ptlrpc/layout.c index cb4e150..d471fc3 100644 --- a/lustre/ptlrpc/layout.c +++ b/lustre/ptlrpc/layout.c @@ -55,6 +55,8 @@ #include #include +#include "ptlrpc_internal.h" + /* * RQFs (see below) refer to two struct req_msg_field arrays describing the * client request and server reply, respectively. diff --git a/lustre/ptlrpc/nodemap_handler.c b/lustre/ptlrpc/nodemap_handler.c index 159ea99..5114528 100644 --- a/lustre/ptlrpc/nodemap_handler.c +++ b/lustre/ptlrpc/nodemap_handler.c @@ -32,7 +32,9 @@ #include #include #include + #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) diff --git a/lustre/ptlrpc/pack_server.c b/lustre/ptlrpc/pack_server.c index 3cc4fcf..3479b8e 100644 --- a/lustre/ptlrpc/pack_server.c +++ b/lustre/ptlrpc/pack_server.c @@ -29,6 +29,7 @@ #define DEBUG_SUBSYSTEM S_RPC +#include #include #include diff --git a/lustre/ptlrpc/wiretest.c b/lustre/ptlrpc/wiretest.c index da714f0..2b7ba62 100644 --- a/lustre/ptlrpc/wiretest.c +++ b/lustre/ptlrpc/wiretest.c @@ -44,6 +44,7 @@ #include #include +#include "ptlrpc_internal.h" void lustre_assert_wire_constants(void) { -- 1.8.3.1