Commit f6219c16 authored by Luca Ceresoli's avatar Luca Ceresoli Committed by Greg Kroah-Hartman

staging: lustre: mdc: declare internal symbols as static

Fixes sparse warnings like:
  warning: symbol '...' was not declared. Should it be static?
Signed-off-by: default avatarLuca Ceresoli <luca@lucaceresoli.net>
Cc: Peng Tao <bergwolf@gmail.com>
Cc: Jinshan Xiong <jinshan.xiong@intel.com>
Cc: Srikrishan Malik <srikrishanmalik@gmail.com>
Cc: HPDD-discuss@lists.01.org
Cc: devel@driverdev.osuosl.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent a1ccbf9c
...@@ -855,7 +855,7 @@ static void mdc_close_handle_reply(struct ptlrpc_request *req, ...@@ -855,7 +855,7 @@ static void mdc_close_handle_reply(struct ptlrpc_request *req,
} }
} }
int mdc_close(struct obd_export *exp, struct md_op_data *op_data, static int mdc_close(struct obd_export *exp, struct md_op_data *op_data,
struct md_open_data *mod, struct ptlrpc_request **request) struct md_open_data *mod, struct ptlrpc_request **request)
{ {
struct obd_device *obd = class_exp2obd(exp); struct obd_device *obd = class_exp2obd(exp);
...@@ -974,7 +974,7 @@ int mdc_close(struct obd_export *exp, struct md_op_data *op_data, ...@@ -974,7 +974,7 @@ int mdc_close(struct obd_export *exp, struct md_op_data *op_data,
return rc < 0 ? rc : saved_rc; return rc < 0 ? rc : saved_rc;
} }
int mdc_done_writing(struct obd_export *exp, struct md_op_data *op_data, static int mdc_done_writing(struct obd_export *exp, struct md_op_data *op_data,
struct md_open_data *mod) struct md_open_data *mod)
{ {
struct obd_device *obd = class_exp2obd(exp); struct obd_device *obd = class_exp2obd(exp);
...@@ -1044,7 +1044,7 @@ int mdc_done_writing(struct obd_export *exp, struct md_op_data *op_data, ...@@ -1044,7 +1044,7 @@ int mdc_done_writing(struct obd_export *exp, struct md_op_data *op_data,
} }
int mdc_readpage(struct obd_export *exp, struct md_op_data *op_data, static int mdc_readpage(struct obd_export *exp, struct md_op_data *op_data,
struct page **pages, struct ptlrpc_request **request) struct page **pages, struct ptlrpc_request **request)
{ {
struct ptlrpc_request *req; struct ptlrpc_request *req;
...@@ -1974,7 +1974,7 @@ static int mdc_iocontrol(unsigned int cmd, struct obd_export *exp, int len, ...@@ -1974,7 +1974,7 @@ static int mdc_iocontrol(unsigned int cmd, struct obd_export *exp, int len,
return rc; return rc;
} }
int mdc_get_info_rpc(struct obd_export *exp, static int mdc_get_info_rpc(struct obd_export *exp,
u32 keylen, void *key, u32 keylen, void *key,
int vallen, void *val) int vallen, void *val)
{ {
...@@ -2148,7 +2148,7 @@ static int mdc_kuc_reregister(struct obd_import *imp) ...@@ -2148,7 +2148,7 @@ static int mdc_kuc_reregister(struct obd_import *imp)
(void *)imp); (void *)imp);
} }
int mdc_set_info_async(const struct lu_env *env, static int mdc_set_info_async(const struct lu_env *env,
struct obd_export *exp, struct obd_export *exp,
u32 keylen, void *key, u32 keylen, void *key,
u32 vallen, void *val, u32 vallen, void *val,
...@@ -2199,7 +2199,7 @@ int mdc_set_info_async(const struct lu_env *env, ...@@ -2199,7 +2199,7 @@ int mdc_set_info_async(const struct lu_env *env,
return -EINVAL; return -EINVAL;
} }
int mdc_get_info(const struct lu_env *env, struct obd_export *exp, static int mdc_get_info(const struct lu_env *env, struct obd_export *exp,
__u32 keylen, void *key, __u32 *vallen, void *val, __u32 keylen, void *key, __u32 *vallen, void *val,
struct lov_stripe_md *lsm) struct lov_stripe_md *lsm)
{ {
...@@ -2263,7 +2263,7 @@ int mdc_get_info(const struct lu_env *env, struct obd_export *exp, ...@@ -2263,7 +2263,7 @@ int mdc_get_info(const struct lu_env *env, struct obd_export *exp,
return rc; return rc;
} }
int mdc_sync(struct obd_export *exp, const struct lu_fid *fid, static int mdc_sync(struct obd_export *exp, const struct lu_fid *fid,
struct obd_capa *oc, struct ptlrpc_request **request) struct obd_capa *oc, struct ptlrpc_request **request)
{ {
struct ptlrpc_request *req; struct ptlrpc_request *req;
...@@ -2356,7 +2356,7 @@ int mdc_fid_alloc(struct obd_export *exp, struct lu_fid *fid, ...@@ -2356,7 +2356,7 @@ int mdc_fid_alloc(struct obd_export *exp, struct lu_fid *fid,
return seq_client_alloc_fid(NULL, seq, fid); return seq_client_alloc_fid(NULL, seq, fid);
} }
struct obd_uuid *mdc_get_uuid(struct obd_export *exp) static struct obd_uuid *mdc_get_uuid(struct obd_export *exp)
{ {
struct client_obd *cli = &exp->exp_obd->u.cli; struct client_obd *cli = &exp->exp_obd->u.cli;
...@@ -2390,7 +2390,7 @@ static int mdc_resource_inode_free(struct ldlm_resource *res) ...@@ -2390,7 +2390,7 @@ static int mdc_resource_inode_free(struct ldlm_resource *res)
return 0; return 0;
} }
struct ldlm_valblock_ops inode_lvbo = { static struct ldlm_valblock_ops inode_lvbo = {
.lvbo_free = mdc_resource_inode_free, .lvbo_free = mdc_resource_inode_free,
}; };
...@@ -2550,7 +2550,7 @@ static int mdc_process_config(struct obd_device *obd, u32 len, void *buf) ...@@ -2550,7 +2550,7 @@ static int mdc_process_config(struct obd_device *obd, u32 len, void *buf)
/* get remote permission for current user on fid */ /* get remote permission for current user on fid */
int mdc_get_remote_perm(struct obd_export *exp, const struct lu_fid *fid, static int mdc_get_remote_perm(struct obd_export *exp, const struct lu_fid *fid,
struct obd_capa *oc, __u32 suppgid, struct obd_capa *oc, __u32 suppgid,
struct ptlrpc_request **request) struct ptlrpc_request **request)
{ {
...@@ -2647,7 +2647,7 @@ static int mdc_renew_capa(struct obd_export *exp, struct obd_capa *oc, ...@@ -2647,7 +2647,7 @@ static int mdc_renew_capa(struct obd_export *exp, struct obd_capa *oc,
return 0; return 0;
} }
struct obd_ops mdc_obd_ops = { static struct obd_ops mdc_obd_ops = {
.o_owner = THIS_MODULE, .o_owner = THIS_MODULE,
.o_setup = mdc_setup, .o_setup = mdc_setup,
.o_precleanup = mdc_precleanup, .o_precleanup = mdc_precleanup,
...@@ -2670,7 +2670,7 @@ struct obd_ops mdc_obd_ops = { ...@@ -2670,7 +2670,7 @@ struct obd_ops mdc_obd_ops = {
.o_quotacheck = mdc_quotacheck .o_quotacheck = mdc_quotacheck
}; };
struct md_ops mdc_md_ops = { static struct md_ops mdc_md_ops = {
.m_getstatus = mdc_getstatus, .m_getstatus = mdc_getstatus,
.m_null_inode = mdc_null_inode, .m_null_inode = mdc_null_inode,
.m_find_cbdata = mdc_find_cbdata, .m_find_cbdata = mdc_find_cbdata,
...@@ -2705,7 +2705,7 @@ struct md_ops mdc_md_ops = { ...@@ -2705,7 +2705,7 @@ struct md_ops mdc_md_ops = {
.m_revalidate_lock = mdc_revalidate_lock .m_revalidate_lock = mdc_revalidate_lock
}; };
int __init mdc_init(void) static int __init mdc_init(void)
{ {
int rc; int rc;
struct lprocfs_static_vars lvars = { NULL }; struct lprocfs_static_vars lvars = { 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