Skip to content

Commit e3c9078

Browse files
tchardinggregkh
authored andcommitted
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: Tobin C Harding <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent d484ed6 commit e3c9078

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

drivers/staging/lustre/lustre/llite/vvp_dev.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,8 @@ struct lu_context_key vvp_session_key = {
150150
.lct_fini = vvp_session_key_fini
151151
};
152152

153-
void *vvp_thread_key_init(const struct lu_context *ctx,
154-
struct lu_context_key *key)
153+
static void *vvp_thread_key_init(const struct lu_context *ctx,
154+
struct lu_context_key *key)
155155
{
156156
struct vvp_thread_info *vti;
157157

@@ -161,8 +161,8 @@ void *vvp_thread_key_init(const struct lu_context *ctx,
161161
return vti;
162162
}
163163

164-
void vvp_thread_key_fini(const struct lu_context *ctx,
165-
struct lu_context_key *key, void *data)
164+
static void vvp_thread_key_fini(const struct lu_context *ctx,
165+
struct lu_context_key *key, void *data)
166166
{
167167
struct vvp_thread_info *vti = data;
168168

drivers/staging/lustre/lustre/llite/vvp_io.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@
4747
#include "llite_internal.h"
4848
#include "vvp_internal.h"
4949

50-
struct vvp_io *cl2vvp_io(const struct lu_env *env,
51-
const struct cl_io_slice *slice)
50+
static struct vvp_io *cl2vvp_io(const struct lu_env *env,
51+
const struct cl_io_slice *slice)
5252
{
5353
struct vvp_io *vio;
5454

@@ -1259,7 +1259,7 @@ static int vvp_io_read_page(const struct lu_env *env,
12591259
return 0;
12601260
}
12611261

1262-
void vvp_io_end(const struct lu_env *env, const struct cl_io_slice *ios)
1262+
static void vvp_io_end(const struct lu_env *env, const struct cl_io_slice *ios)
12631263
{
12641264
CLOBINVRNT(env, ios->cis_io->ci_obj,
12651265
vvp_object_invariant(ios->cis_io->ci_obj));

drivers/staging/lustre/lustre/llite/vvp_req.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@ static inline struct vvp_req *cl2vvp_req(const struct cl_req_slice *slice)
6060
* - o_ioepoch,
6161
*
6262
*/
63-
void vvp_req_attr_set(const struct lu_env *env,
64-
const struct cl_req_slice *slice,
65-
const struct cl_object *obj,
66-
struct cl_req_attr *attr, u64 flags)
63+
static void vvp_req_attr_set(const struct lu_env *env,
64+
const struct cl_req_slice *slice,
65+
const struct cl_object *obj,
66+
struct cl_req_attr *attr, u64 flags)
6767
{
6868
struct inode *inode;
6969
struct obdo *oa;
@@ -87,8 +87,8 @@ void vvp_req_attr_set(const struct lu_env *env,
8787
JOBSTATS_JOBID_SIZE);
8888
}
8989

90-
void vvp_req_completion(const struct lu_env *env,
91-
const struct cl_req_slice *slice, int ioret)
90+
static void vvp_req_completion(const struct lu_env *env,
91+
const struct cl_req_slice *slice, int ioret)
9292
{
9393
struct vvp_req *vrq;
9494

drivers/staging/lustre/lustre/obdclass/obd_mount.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ static int lustre_start_simple(char *obdname, char *type, char *uuid,
192192
return rc;
193193
}
194194

195-
DEFINE_MUTEX(mgc_start_lock);
195+
static DEFINE_MUTEX(mgc_start_lock);
196196

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

0 commit comments

Comments
 (0)