NFS: Make nfs_commitdata_release static
authorH Hartley Sweeten <hartleys@visionengravers.com>
Tue, 26 Jan 2010 20:42:03 +0000 (15:42 -0500)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 26 Jan 2010 20:42:03 +0000 (15:42 -0500)
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>
fs/nfs/write.c

index dac8d7676aff64fe3bdf1465e61d34fae7b80304..7b54b8bb101fc857a857e58c3f1e09b0a7711e1e 100644 (file)
@@ -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;