Commit 0bf31f07 authored by Darshana Padmadas's avatar Darshana Padmadas Committed by Greg Kroah-Hartman

Staging: lustre: Mark internal functions as static

This patch makes functions mgc_logname2resid, mgc_set_info_async
and mgc_init static as these are only used internally.

This also eliminates sparse warnings of the type:
warning: symbol * was not declared. Should it be static?
Signed-off-by: default avatarDarshana Padmadas <darshanapadmadas@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 171aee16
...@@ -95,7 +95,7 @@ int mgc_fsname2resid(char *fsname, struct ldlm_res_id *res_id, int type) ...@@ -95,7 +95,7 @@ int mgc_fsname2resid(char *fsname, struct ldlm_res_id *res_id, int type)
} }
EXPORT_SYMBOL(mgc_fsname2resid); EXPORT_SYMBOL(mgc_fsname2resid);
int mgc_logname2resid(char *logname, struct ldlm_res_id *res_id, int type) static int mgc_logname2resid(char *logname, struct ldlm_res_id *res_id, int type)
{ {
char *name_end; char *name_end;
int len; int len;
...@@ -967,7 +967,7 @@ static int mgc_target_register(struct obd_export *exp, ...@@ -967,7 +967,7 @@ static int mgc_target_register(struct obd_export *exp,
return rc; return rc;
} }
int mgc_set_info_async(const struct lu_env *env, struct obd_export *exp, static int mgc_set_info_async(const struct lu_env *env, struct obd_export *exp,
u32 keylen, void *key, u32 vallen, u32 keylen, void *key, u32 vallen,
void *val, struct ptlrpc_request_set *set) void *val, struct ptlrpc_request_set *set)
{ {
...@@ -1743,7 +1743,7 @@ struct obd_ops mgc_obd_ops = { ...@@ -1743,7 +1743,7 @@ struct obd_ops mgc_obd_ops = {
.o_process_config = mgc_process_config, .o_process_config = mgc_process_config,
}; };
int __init mgc_init(void) static int __init mgc_init(void)
{ {
return class_register_type(&mgc_obd_ops, NULL, NULL, return class_register_type(&mgc_obd_ops, NULL, NULL,
LUSTRE_MGC_NAME, NULL); LUSTRE_MGC_NAME, NULL);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment