Commit f51e5a20 authored by Amitoj Kaur Chawla's avatar Amitoj Kaur Chawla Committed by Greg Kroah-Hartman

staging: lustre: osc: osc_request: Declare local function and structure as static

Declare osc_cleanup() function and osc_obd_ops structure as static
since they are defined and called only in this file.

Removed osc_cleanup() function prototype since it wasn't required.

This fixes the following sparse warnings:
drivers/staging/lustre/lustre/osc/osc_request.c:3210:5: warning:
symbol 'osc_cleanup' was not declared. Should it be static?
drivers/staging/lustre/lustre/osc/osc_request.c:3259:16: warning:
symbol 'osc_obd_ops' was not declared. Should it be static?
Signed-off-by: default avatarAmitoj Kaur Chawla <amitoj1606@gmail.com>
Reviewed-by: default avatarArnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 8cee691e
...@@ -104,7 +104,6 @@ struct osc_enqueue_args { ...@@ -104,7 +104,6 @@ struct osc_enqueue_args {
static void osc_release_ppga(struct brw_page **ppga, u32 count); static void osc_release_ppga(struct brw_page **ppga, u32 count);
static int brw_interpret(const struct lu_env *env, static int brw_interpret(const struct lu_env *env,
struct ptlrpc_request *req, void *data, int rc); struct ptlrpc_request *req, void *data, int rc);
static int osc_cleanup(struct obd_device *obd);
/* Pack OSC object metadata for disk storage (LE byte order). */ /* Pack OSC object metadata for disk storage (LE byte order). */
static int osc_packmd(struct obd_export *exp, struct lov_mds_md **lmmp, static int osc_packmd(struct obd_export *exp, struct lov_mds_md **lmmp,
...@@ -3205,7 +3204,7 @@ static int osc_precleanup(struct obd_device *obd, enum obd_cleanup_stage stage) ...@@ -3205,7 +3204,7 @@ static int osc_precleanup(struct obd_device *obd, enum obd_cleanup_stage stage)
return 0; return 0;
} }
int osc_cleanup(struct obd_device *obd) static int osc_cleanup(struct obd_device *obd)
{ {
struct client_obd *cli = &obd->u.cli; struct client_obd *cli = &obd->u.cli;
int rc; int rc;
...@@ -3254,7 +3253,7 @@ static int osc_process_config(struct obd_device *obd, u32 len, void *buf) ...@@ -3254,7 +3253,7 @@ static int osc_process_config(struct obd_device *obd, u32 len, void *buf)
return osc_process_config_base(obd, buf); return osc_process_config_base(obd, buf);
} }
struct obd_ops osc_obd_ops = { static struct obd_ops osc_obd_ops = {
.owner = THIS_MODULE, .owner = THIS_MODULE,
.setup = osc_setup, .setup = osc_setup,
.precleanup = osc_precleanup, .precleanup = osc_precleanup,
......
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