staging: lustre: fix (non-)static symbols issues
v2 cover staging: lustre: fix (non-)static symbols issues
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.
v2: Thank Andreas Dilger for the review.
Anton Gerasimov (3):
staging: lustre: moved extern declarations to a header
staging: lustre: include header with local ptlrpc declarations
staging: lustre: make non-exported functions static
drivers/staging/lustre/lustre/ptlrpc/lproc_ptlrpc.c | 1 - drivers/staging/lustre/lustre/ptlrpc/nrs.c | 1 - drivers/staging/lustre/lustre/ptlrpc/pack_generic.c | 8 ++++---- drivers/staging/lustre/lustre/ptlrpc/ptlrpc_internal.h | 6 ++++++ drivers/staging/lustre/lustre/ptlrpc/ptlrpc_module.c | 2 -- drivers/staging/lustre/lustre/ptlrpc/sec_null.c | 2 ++ drivers/staging/lustre/lustre/ptlrpc/wiretest.c | 2 ++ 7 files changed, 14 insertions(+), 8 deletions(-)
Signature · 1 line
2.5.1