Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

fuse: Fix build error

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>

authored by

Larry Finger and committed by
Linus Torvalds
097041e5 69ca06c9

+2
+1
fs/fuse/dev.c
··· 16 16 #include <linux/pagemap.h> 17 17 #include <linux/file.h> 18 18 #include <linux/slab.h> 19 + #include <linux/blkdev.h> 19 20 20 21 MODULE_ALIAS_MISCDEV(FUSE_MINOR); 21 22
+1
fs/nfs/write.c
··· 19 19 #include <linux/nfs_mount.h> 20 20 #include <linux/nfs_page.h> 21 21 #include <linux/backing-dev.h> 22 + #include <linux/blkdev.h> 22 23 23 24 #include <asm/uaccess.h> 24 25