Skip to contentSkip to conversation

fs/nfs/write.c: make local symbol static

PATCH New H Hartley Sweeten 1 participant 1 message Jan 15, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fs/nfs/write.c: make local symbol static

fs/nfs/write.c: make local symbol static

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?

---

fs/nfs/write.c +1 -1
index d171696..78b5c56 100644
@@ -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;