diff options
| author | Shraddha Barke <shraddha.6596@gmail.com> | 2015-10-07 23:06:06 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-10-08 12:21:08 +0300 |
| commit | 9dd7d427ab6e26e68d9c245b579a0acde8b671ee (patch) | |
| tree | 84c344633719fdc978c6ccc4d61882285e90165c | |
| parent | fcdf51c179d50e71ce9e5a11d87c32baef3c1004 (diff) | |
| download | linux-9dd7d427ab6e26e68d9c245b579a0acde8b671ee.tar.xz | |
Staging: lustre: ptlrpc: import: Declare deuuidify as static
Declare function deuuidify as static since it is used only in this
particular file.Also remove the corresponding declaration from header
files.
Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
| -rw-r--r-- | drivers/staging/lustre/lustre/include/lustre_net.h | 2 | ||||
| -rw-r--r-- | drivers/staging/lustre/lustre/ptlrpc/import.c | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/drivers/staging/lustre/lustre/include/lustre_net.h b/drivers/staging/lustre/lustre/include/lustre_net.h index 51a4e64e56a2..b88c971fd32f 100644 --- a/drivers/staging/lustre/lustre/include/lustre_net.h +++ b/drivers/staging/lustre/lustre/include/lustre_net.h @@ -2523,8 +2523,6 @@ int ptlrpc_connect_import(struct obd_import *imp); int ptlrpc_init_import(struct obd_import *imp); int ptlrpc_disconnect_import(struct obd_import *imp, int noclose); int ptlrpc_import_recovery_state_machine(struct obd_import *imp); -void deuuidify(char *uuid, const char *prefix, char **uuid_start, - int *uuid_len); /* ptlrpc/pack_generic.c */ int ptlrpc_reconnect_import(struct obd_import *imp); diff --git a/drivers/staging/lustre/lustre/ptlrpc/import.c b/drivers/staging/lustre/lustre/ptlrpc/import.c index 1ac265dfce2f..5aaf42f2631d 100644 --- a/drivers/staging/lustre/lustre/ptlrpc/import.c +++ b/drivers/staging/lustre/lustre/ptlrpc/import.c @@ -128,7 +128,8 @@ int ptlrpc_init_import(struct obd_import *imp) EXPORT_SYMBOL(ptlrpc_init_import); #define UUID_STR "_UUID" -void deuuidify(char *uuid, const char *prefix, char **uuid_start, int *uuid_len) +static void deuuidify(char *uuid, const char *prefix, char **uuid_start, + int *uuid_len) { *uuid_start = !prefix || strncmp(uuid, prefix, strlen(prefix)) ? uuid : uuid + strlen(prefix); |
