diff --git a/fs/gfs2/ops_address.c b/fs/gfs2/ops_address.c
index 5e9653c4d8867ab2994d54044db6120b2da469d3..56e33590b65661cec2bd8cdf8c375513d450c153 100644
--- a/fs/gfs2/ops_address.c
+++ b/fs/gfs2/ops_address.c
@@ -170,7 +170,8 @@ static int gfs2_writepage(struct page *page, struct writeback_control *wbc)
  * and write whole extents at once. This is a big reduction in the
  * number of I/O requests we send and the bmap calls we make in this case.
  */
-int gfs2_writepages(struct address_space *mapping, struct writeback_control *wbc)
+static int gfs2_writepages(struct address_space *mapping,
+			   struct writeback_control *wbc)
 {
 	struct inode *inode = mapping->host;
 	struct gfs2_inode *ip = GFS2_I(inode);