Staging: lustre: ptlrpc: import: Declare deuuidify as static
authorShraddha Barke <shraddha.6596@gmail.com>
Wed, 7 Oct 2015 20:06:06 +0000 (01:36 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Oct 2015 09:21:08 +0000 (10:21 +0100)
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>
drivers/staging/lustre/lustre/include/lustre_net.h
drivers/staging/lustre/lustre/ptlrpc/import.c

index 51a4e64e56a2f41e55a8defc84c47095ebe45c67..b88c971fd32f9931ba986dbf54e14155718c1e49 100644 (file)
@@ -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);
index 1ac265dfce2fd981e0f4891869a7619a9653fe28..5aaf42f2631d253b71bc24d02b2967e86b32b0b9 100644 (file)
@@ -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);