diff options
author | Janet Liu <jianhua.ljh@gmail.com> | 2014-11-30 05:08:10 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-12-02 19:52:36 -0500 |
commit | 60ebee3bcf804a15229d71ac571c05f9f5e9e818 (patch) | |
tree | 6d8ec8258bc6344b9eb484f028c76d1cd1e8c0ed | |
parent | d10dc6b3bb4dbf5626dcb7e28d75f590132f413e (diff) |
staging: lustre: fixed sparse warnings related to static declarations
drivers/staging/lustre/lustre/mdc/mdc_request.c:63:5: warning: symbol 'mdc_unpack_capa' was not declared. Should it be static?
drivers/staging/lustre/lustre/mdc/mdc_request.c:150:5: warning: symbol 'mdc_getstatus' was not declared. Should it be static?
drivers/staging/lustre/lustre/mdc/mdc_request.c:217:5: warning: symbol 'mdc_getattr' was not declared. Should it be static?
drivers/staging/lustre/lustre/mdc/mdc_request.c:261:5: warning: symbol 'mdc_getattr_name' was not declared. Should it be static?
drivers/staging/lustre/lustre/mdc/mdc_request.c:444:5: warning: symbol 'mdc_setxattr' was not declared. Should it be static?
drivers/staging/lustre/lustre/mdc/mdc_request.c:455:5: warning: symbol 'mdc_getxattr' was not declared. Should it be static?
Signed-off-by: Janet Liu <jianhua.ljh@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/lustre/lustre/mdc/mdc_request.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/staging/lustre/lustre/mdc/mdc_request.c b/drivers/staging/lustre/lustre/mdc/mdc_request.c index 14e1ba1675f6..3b0f245a8780 100644 --- a/drivers/staging/lustre/lustre/mdc/mdc_request.c +++ b/drivers/staging/lustre/lustre/mdc/mdc_request.c | |||
@@ -60,7 +60,7 @@ struct mdc_renew_capa_args { | |||
60 | 60 | ||
61 | static int mdc_cleanup(struct obd_device *obd); | 61 | static int mdc_cleanup(struct obd_device *obd); |
62 | 62 | ||
63 | int mdc_unpack_capa(struct obd_export *exp, struct ptlrpc_request *req, | 63 | static int mdc_unpack_capa(struct obd_export *exp, struct ptlrpc_request *req, |
64 | const struct req_msg_field *field, struct obd_capa **oc) | 64 | const struct req_msg_field *field, struct obd_capa **oc) |
65 | { | 65 | { |
66 | struct lustre_capa *capa; | 66 | struct lustre_capa *capa; |
@@ -147,7 +147,7 @@ out: | |||
147 | } | 147 | } |
148 | 148 | ||
149 | /* This should be mdc_get_info("rootfid") */ | 149 | /* This should be mdc_get_info("rootfid") */ |
150 | int mdc_getstatus(struct obd_export *exp, struct lu_fid *rootfid, | 150 | static int mdc_getstatus(struct obd_export *exp, struct lu_fid *rootfid, |
151 | struct obd_capa **pc) | 151 | struct obd_capa **pc) |
152 | { | 152 | { |
153 | return send_getstatus(class_exp2cliimp(exp), rootfid, pc, | 153 | return send_getstatus(class_exp2cliimp(exp), rootfid, pc, |
@@ -214,7 +214,7 @@ static int mdc_getattr_common(struct obd_export *exp, | |||
214 | return 0; | 214 | return 0; |
215 | } | 215 | } |
216 | 216 | ||
217 | int mdc_getattr(struct obd_export *exp, struct md_op_data *op_data, | 217 | static int mdc_getattr(struct obd_export *exp, struct md_op_data *op_data, |
218 | struct ptlrpc_request **request) | 218 | struct ptlrpc_request **request) |
219 | { | 219 | { |
220 | struct ptlrpc_request *req; | 220 | struct ptlrpc_request *req; |
@@ -258,7 +258,7 @@ int mdc_getattr(struct obd_export *exp, struct md_op_data *op_data, | |||
258 | return rc; | 258 | return rc; |
259 | } | 259 | } |
260 | 260 | ||
261 | int mdc_getattr_name(struct obd_export *exp, struct md_op_data *op_data, | 261 | static int mdc_getattr_name(struct obd_export *exp, struct md_op_data *op_data, |
262 | struct ptlrpc_request **request) | 262 | struct ptlrpc_request **request) |
263 | { | 263 | { |
264 | struct ptlrpc_request *req; | 264 | struct ptlrpc_request *req; |
@@ -441,7 +441,7 @@ static int mdc_xattr_common(struct obd_export *exp, | |||
441 | return rc; | 441 | return rc; |
442 | } | 442 | } |
443 | 443 | ||
444 | int mdc_setxattr(struct obd_export *exp, const struct lu_fid *fid, | 444 | static int mdc_setxattr(struct obd_export *exp, const struct lu_fid *fid, |
445 | struct obd_capa *oc, u64 valid, const char *xattr_name, | 445 | struct obd_capa *oc, u64 valid, const char *xattr_name, |
446 | const char *input, int input_size, int output_size, | 446 | const char *input, int input_size, int output_size, |
447 | int flags, __u32 suppgid, struct ptlrpc_request **request) | 447 | int flags, __u32 suppgid, struct ptlrpc_request **request) |
@@ -452,7 +452,7 @@ int mdc_setxattr(struct obd_export *exp, const struct lu_fid *fid, | |||
452 | suppgid, request); | 452 | suppgid, request); |
453 | } | 453 | } |
454 | 454 | ||
455 | int mdc_getxattr(struct obd_export *exp, const struct lu_fid *fid, | 455 | static int mdc_getxattr(struct obd_export *exp, const struct lu_fid *fid, |
456 | struct obd_capa *oc, u64 valid, const char *xattr_name, | 456 | struct obd_capa *oc, u64 valid, const char *xattr_name, |
457 | const char *input, int input_size, int output_size, | 457 | const char *input, int input_size, int output_size, |
458 | int flags, struct ptlrpc_request **request) | 458 | int flags, struct ptlrpc_request **request) |