Commit bb3393d5 authored by Trond Myklebust's avatar Trond Myklebust

NFSv3: nfs3_nlm_alloc_call should be declared static

Fix compiler warnings.
Signed-off-by: default avatarTrond Myklebust <trond.myklebust@primarydata.com>
parent a6598813
...@@ -865,7 +865,7 @@ static void nfs3_proc_commit_setup(struct nfs_commit_data *data, struct rpc_mess ...@@ -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]; 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; struct nfs_lock_context *l_ctx = data;
if (l_ctx && test_bit(NFS_CONTEXT_UNLOCK, &l_ctx->open_context->flags)) { if (l_ctx && test_bit(NFS_CONTEXT_UNLOCK, &l_ctx->open_context->flags)) {
...@@ -874,7 +874,7 @@ void nfs3_nlm_alloc_call(void *data) ...@@ -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; struct nfs_lock_context *l_ctx = data;
if (l_ctx && test_bit(NFS_CONTEXT_UNLOCK, &l_ctx->open_context->flags)) if (l_ctx && test_bit(NFS_CONTEXT_UNLOCK, &l_ctx->open_context->flags))
...@@ -883,7 +883,7 @@ bool nfs3_nlm_unlock_prepare(struct rpc_task *task, void *data) ...@@ -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_lock_context *l_ctx = data;
struct nfs_open_context *ctx; struct nfs_open_context *ctx;
......
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