From: Timothy Day Date: Thu, 28 Mar 2024 23:31:20 +0000 (-0700) Subject: LU-8191 ptlrpc: add missing headers X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=2ba254a594f56971e5c45fc363f453e3e299200d;p=fs%2Flustre-release.git 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. Lustre-change: https://review.whamcloud.com/51480 Lustre-commit: fba78a416621343aadeeb4d28df86e422b653bfe Test-Parameters: trivial Signed-off-by: Timothy Day Change-Id: Idd8fa747a671079aba2b691ef23cc7564e5e2430 Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/54618 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Andreas Dilger --- diff --git a/lustre/ptlrpc/layout.c b/lustre/ptlrpc/layout.c index 4acffe9..2d5921d 100644 --- a/lustre/ptlrpc/layout.c +++ b/lustre/ptlrpc/layout.c @@ -57,6 +57,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 057cf3f..ca8ec06 100644 --- a/lustre/ptlrpc/nodemap_handler.c +++ b/lustre/ptlrpc/nodemap_handler.c @@ -33,7 +33,9 @@ #include #include #include + #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) diff --git a/lustre/ptlrpc/wiretest.c b/lustre/ptlrpc/wiretest.c index 31d1e26..f56f0bc 100644 --- a/lustre/ptlrpc/wiretest.c +++ b/lustre/ptlrpc/wiretest.c @@ -46,6 +46,7 @@ #include #include +#include "ptlrpc_internal.h" void lustre_assert_wire_constants(void) {