All of lore.kernel.org
 help / color / mirror / Atom feed
* [lustre-devel] [PATCH 0/3] staging: lustre: fix (non-)static symbols issues
@ 2015-09-22 21:35 Anton Gerasimov
  2015-09-22 21:40 ` [lustre-devel] [PATCH 1/3] staging: lustre: add shared variables to the header Anton Gerasimov
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Anton Gerasimov @ 2015-09-22 21:35 UTC (permalink / raw)
  To: lustre-devel

This series of patches eliminates some sparse warnings concerning
static variables in lustre rtlrpc module where it seemed reasonable.
Symbols that are really local to a source file are made static and
declarations added to a header for symbols that are shared between
source files.

Anton Gerasimov (3):
  staging: lustre: add shared variables to the header
  staging: lustre: include header with local ptlrpc declarations
  staging: lustre: make non-exported functions static

 drivers/staging/lustre/lustre/ptlrpc/pack_generic.c    | 8 ++++----
 drivers/staging/lustre/lustre/ptlrpc/ptlrpc_internal.h | 6 ++++++
 drivers/staging/lustre/lustre/ptlrpc/sec_null.c        | 2 ++
 drivers/staging/lustre/lustre/ptlrpc/wiretest.c        | 2 ++
 4 files changed, 14 insertions(+), 4 deletions(-)

-- 
2.5.1

^ permalink raw reply	[flat|nested] 6+ messages in thread
* [lustre-devel] [PATCH 1/3] staging: lustre: add shared variables to the header
@ 2015-09-22 22:24 Anton Gerasimov
  0 siblings, 0 replies; 6+ messages in thread
From: Anton Gerasimov @ 2015-09-22 22:24 UTC (permalink / raw)
  To: lustre-devel

This patch adds declarations for variables used in several files
across the ptlrpc module to the local header.

Signed-off-by: Anton Gerasimov <anton.gerasimov@openmailbox.org>
---
 drivers/staging/lustre/lustre/ptlrpc/ptlrpc_internal.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/drivers/staging/lustre/lustre/ptlrpc/ptlrpc_internal.h b/drivers/staging/lustre/lustre/ptlrpc/ptlrpc_internal.h
index 34c7e28..4e35b14 100644
--- a/drivers/staging/lustre/lustre/ptlrpc/ptlrpc_internal.h
+++ b/drivers/staging/lustre/lustre/ptlrpc/ptlrpc_internal.h
@@ -47,6 +47,10 @@ struct ldlm_res_id;
 struct ptlrpc_request_set;
 extern int test_req_buffer_pressure;
 extern struct mutex ptlrpc_all_services_mutex;
+extern struct list_head ptlrpc_all_services;
+
+extern struct mutex ptlrpcd_mutex;
+extern struct mutex pinger_mutex;
 
 int ptlrpc_start_thread(struct ptlrpc_service_part *svcpt, int wait);
 /* ptlrpcd.c */
@@ -110,6 +114,8 @@ struct nrs_core {
 
 };
 
+extern struct nrs_core nrs_core;
+
 int ptlrpc_service_nrs_setup(struct ptlrpc_service *svc);
 void ptlrpc_service_nrs_cleanup(struct ptlrpc_service *svc);
 
-- 
2.5.1

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-09-23 13:13 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-22 21:35 [lustre-devel] [PATCH 0/3] staging: lustre: fix (non-)static symbols issues Anton Gerasimov
2015-09-22 21:40 ` [lustre-devel] [PATCH 1/3] staging: lustre: add shared variables to the header Anton Gerasimov
2015-09-23 13:13   ` Dilger, Andreas
2015-09-22 21:41 ` [lustre-devel] [PATCH 2/3] staging: lustre: include header with local ptlrpc declarations Anton Gerasimov
2015-09-22 21:41 ` [lustre-devel] [PATCH 3/3] staging: lustre: make non-exported functions static Anton Gerasimov
  -- strict thread matches above, loose matches on Subject: below --
2015-09-22 22:24 [lustre-devel] [PATCH 1/3] staging: lustre: add shared variables to the header Anton Gerasimov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.