Skip to content

Commit

Permalink
NFSv3: nfs3_nlm_alloc_call should be declared static
Browse files Browse the repository at this point in the history
Fix compiler warnings.

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
  • Loading branch information
Trond Myklebust committed Apr 25, 2017
1 parent a659881 commit bb3393d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fs/nfs/nfs3proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -865,7 +865,7 @@ static void nfs3_proc_commit_setup(struct nfs_commit_data *data, struct rpc_mess
msg->rpc_proc = &nfs3_procedures[NFS3PROC_COMMIT];
}

void nfs3_nlm_alloc_call(void *data)
static void nfs3_nlm_alloc_call(void *data)
{
struct nfs_lock_context *l_ctx = data;
if (l_ctx && test_bit(NFS_CONTEXT_UNLOCK, &l_ctx->open_context->flags)) {
Expand All @@ -874,7 +874,7 @@ void nfs3_nlm_alloc_call(void *data)
}
}

bool nfs3_nlm_unlock_prepare(struct rpc_task *task, void *data)
static bool nfs3_nlm_unlock_prepare(struct rpc_task *task, void *data)
{
struct nfs_lock_context *l_ctx = data;
if (l_ctx && test_bit(NFS_CONTEXT_UNLOCK, &l_ctx->open_context->flags))
Expand All @@ -883,7 +883,7 @@ bool nfs3_nlm_unlock_prepare(struct rpc_task *task, void *data)

}

void nfs3_nlm_release_call(void *data)
static void nfs3_nlm_release_call(void *data)
{
struct nfs_lock_context *l_ctx = data;
struct nfs_open_context *ctx;
Expand Down

0 comments on commit bb3393d

Please sign in to comment.