fuse: Fix build error
authorLarry Finger <Larry.Finger@lwfinger.net>
Sat, 11 Jul 2009 01:06:42 +0000 (20:06 -0500)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 11 Jul 2009 02:09:46 +0000 (19:09 -0700)
When building v2.6.31-rc2-344-g69ca06c, the following build errors are
found due to missing includes:

 CC [M]  fs/fuse/dev.o
fs/fuse/dev.c: In function ‘request_end’:
fs/fuse/dev.c:289: error: ‘BLK_RW_SYNC’ undeclared (first use in this function)
...
fs/nfs/write.c: In function ‘nfs_set_page_writeback’:
fs/nfs/write.c:207: error: ‘BLK_RW_ASYNC’ undeclared (first use in this function)

Signed-off-by: Larry Finger@lwfinger.net>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/fuse/dev.c
fs/nfs/write.c

index 6484eb75acd6f318c04238a51763b7cf2c9599ea..cbceacbc0bf91f020bd38cbd567a912435249645 100644 (file)
@@ -16,6 +16,7 @@
 #include <linux/pagemap.h>
 #include <linux/file.h>
 #include <linux/slab.h>
+#include <linux/blkdev.h>
 
 MODULE_ALIAS_MISCDEV(FUSE_MINOR);
 
index 0a0a2ff767c318d5924c603a3f67ed7f5ccc9402..35d81316163fcd88da29f1f7f43637bb4ed5bc6f 100644 (file)
@@ -19,6 +19,7 @@
 #include <linux/nfs_mount.h>
 #include <linux/nfs_page.h>
 #include <linux/backing-dev.h>
+#include <linux/blkdev.h>
 
 #include <asm/uaccess.h>