diff options
author | Bhumika Goyal <bhumirks@gmail.com> | 2016-02-12 11:53:28 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-02-14 16:21:15 -0800 |
commit | 639868832a2c27455794d04ce30b5396eefbcd62 (patch) | |
tree | 9671902a8a69a0bb4d66a228ce1e885634f21099 /drivers/staging | |
parent | da58688fb02100c1275d15213d01c06565933e14 (diff) |
Staging: lustre: obdclass: Declare function as static
Declare the function cache_stats_print as static since it is used
only in this file. Used grep to find occurences. Problem found using
sparse.
Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/lustre/lustre/obdclass/cl_object.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/staging/lustre/lustre/obdclass/cl_object.c b/drivers/staging/lustre/lustre/obdclass/cl_object.c index 57c8d5412bbd..f118983608cd 100644 --- a/drivers/staging/lustre/lustre/obdclass/cl_object.c +++ b/drivers/staging/lustre/lustre/obdclass/cl_object.c @@ -362,7 +362,8 @@ void cache_stats_init(struct cache_stats *cs, const char *name) atomic_set(&cs->cs_stats[i], 0); } -int cache_stats_print(const struct cache_stats *cs, struct seq_file *m, int h) +static int cache_stats_print(const struct cache_stats *cs, + struct seq_file *m, int h) { int i; /* |