[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20110721135537.dbfea947.rdunlap@xenotime.net>
Date: Thu, 21 Jul 2011 13:55:37 -0700
From: Randy Dunlap <rdunlap@...otime.net>
To: Christoph Hellwig <hch@...radead.org>, viro@...iv.linux.org.uk
Cc: Stephen Rothwell <sfr@...b.auug.org.au>, linux-mm@...ck.org,
linux-next@...r.kernel.org, LKML <linux-kernel@...r.kernel.org>,
akpm <akpm@...ux-foundation.org>
Subject: [PATCH -next] mm/truncate.c: fix build for CONFIG_BLOCK not enabled
From: Randy Dunlap <rdunlap@...otime.net>
Fix build error when CONFIG_BLOCK is not enabled by providing a stub
inode_dio_wait() function.
mm/truncate.c:612: error: implicit declaration of function 'inode_dio_wait'
Signed-off-by: Randy Dunlap <rdunlap@...otime.net>
---
include/linux/fs.h | 4 ++++
1 file changed, 4 insertions(+)
--- linux-next-20110721.orig/include/linux/fs.h
+++ linux-next-20110721/include/linux/fs.h
@@ -2418,6 +2418,10 @@ static inline ssize_t blockdev_direct_IO
offset, nr_segs, get_block, NULL, NULL,
DIO_LOCKING | DIO_SKIP_HOLES);
}
+#else
+static inline void inode_dio_wait(struct inode *inode)
+{
+}
#endif
extern const struct file_operations generic_ro_fops;
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists