Skip to content

Commit

Permalink
NFS: make struct nlmclnt_fl_close_lock_ops static
Browse files Browse the repository at this point in the history
The structure nlmclnt_fl_close_lock_ops s local to the source and does
not need to be in global scope, so make it static.

Cleans up sparse warning:
fs/nfs/nfs3proc.c:876:33: warning: symbol 'nlmclnt_fl_close_lock_ops' was not
declared. Should it be static?

Signed-off-by: Colin Ian King <[email protected]>
Signed-off-by: Trond Myklebust <[email protected]>
  • Loading branch information
Colin Ian King authored and trondmypd committed Feb 22, 2018
1 parent ad86f60 commit 1b72040
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/nfs/nfs3proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -873,7 +873,7 @@ static void nfs3_nlm_release_call(void *data)
}
}

const struct nlmclnt_operations nlmclnt_fl_close_lock_ops = {
static const struct nlmclnt_operations nlmclnt_fl_close_lock_ops = {
.nlmclnt_alloc_call = nfs3_nlm_alloc_call,
.nlmclnt_unlock_prepare = nfs3_nlm_unlock_prepare,
.nlmclnt_release_call = nfs3_nlm_release_call,
Expand Down

0 comments on commit 1b72040

Please sign in to comment.