Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e3c9078a authored by Tobin C Harding's avatar Tobin C Harding Committed by Greg Kroah-Hartman
Browse files

staging: lustre: set function scope with static



A number of function definitions were found to be candidates for
static scoping. This patch adds static to these functions.

Signed-off-by: default avatarTobin C Harding <me@tobin.cc>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent d484ed6f
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -150,7 +150,7 @@ struct lu_context_key vvp_session_key = {
	.lct_fini = vvp_session_key_fini
};

void *vvp_thread_key_init(const struct lu_context *ctx,
static void *vvp_thread_key_init(const struct lu_context *ctx,
				 struct lu_context_key *key)
{
	struct vvp_thread_info *vti;
@@ -161,7 +161,7 @@ void *vvp_thread_key_init(const struct lu_context *ctx,
	return vti;
}

void vvp_thread_key_fini(const struct lu_context *ctx,
static void vvp_thread_key_fini(const struct lu_context *ctx,
				struct lu_context_key *key, void *data)
{
	struct vvp_thread_info *vti = data;
+3 −3
Original line number Diff line number Diff line
@@ -47,7 +47,7 @@
#include "llite_internal.h"
#include "vvp_internal.h"

struct vvp_io *cl2vvp_io(const struct lu_env *env,
static struct vvp_io *cl2vvp_io(const struct lu_env *env,
				const struct cl_io_slice *slice)
{
	struct vvp_io *vio;
@@ -1259,7 +1259,7 @@ static int vvp_io_read_page(const struct lu_env *env,
	return 0;
}

void vvp_io_end(const struct lu_env *env, const struct cl_io_slice *ios)
static void vvp_io_end(const struct lu_env *env, const struct cl_io_slice *ios)
{
	CLOBINVRNT(env, ios->cis_io->ci_obj,
		   vvp_object_invariant(ios->cis_io->ci_obj));
+6 −6
Original line number Diff line number Diff line
@@ -60,7 +60,7 @@ static inline struct vvp_req *cl2vvp_req(const struct cl_req_slice *slice)
 *    - o_ioepoch,
 *
 */
void vvp_req_attr_set(const struct lu_env *env,
static void vvp_req_attr_set(const struct lu_env *env,
			     const struct cl_req_slice *slice,
			     const struct cl_object *obj,
			     struct cl_req_attr *attr, u64 flags)
@@ -87,7 +87,7 @@ void vvp_req_attr_set(const struct lu_env *env,
	       JOBSTATS_JOBID_SIZE);
}

void vvp_req_completion(const struct lu_env *env,
static void vvp_req_completion(const struct lu_env *env,
			       const struct cl_req_slice *slice, int ioret)
{
	struct vvp_req *vrq;
+1 −1
Original line number Diff line number Diff line
@@ -192,7 +192,7 @@ static int lustre_start_simple(char *obdname, char *type, char *uuid,
	return rc;
}

DEFINE_MUTEX(mgc_start_lock);
static DEFINE_MUTEX(mgc_start_lock);

/** Set up a mgc obd to process startup logs
 *