Skip to content

Commit

Permalink
NFS: Make nfs_commitdata_release static
Browse files Browse the repository at this point in the history
The symbol nfs_commitdata_release is only used locally
in this file. Make it static to prevent the following sparse warning:

warning: symbol 'nfs_commitdata_release' was not declared. Should it be static?

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Reviewed-by: Chuck Lever <chuck.lever@oracle.com>
  • Loading branch information
H Hartley Sweeten authored and Trond Myklebust committed Jan 26, 2010
1 parent 82be934 commit 0aa0588
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/nfs/write.c
Original file line number Diff line number Diff line change
Expand Up @@ -1233,7 +1233,7 @@ int nfs_writeback_done(struct rpc_task *task, struct nfs_write_data *data)


#if defined(CONFIG_NFS_V3) || defined(CONFIG_NFS_V4)
void nfs_commitdata_release(void *data)
static void nfs_commitdata_release(void *data)
{
struct nfs_write_data *wdata = data;

Expand Down

0 comments on commit 0aa0588

Please sign in to comment.