[PATCH] btrfs: fix build breakage

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: "Lad, Prabhakar" <prabhakar.csengg@xxxxxxxxx>

this patch adds necessary include file, fixing following build errors:

fs/btrfs/inode.c:8094:13: error: undefined identifier 'iov_iter_alignment'
fs/btrfs/inode.c:8105:33: error: using member 'nr_segs' in incomplete struct iov_iter
fs/btrfs/inode.c:8106:43: error: using member 'nr_segs' in incomplete struct iov_iter
fs/btrfs/inode.c:8107:33: error: using member 'iov' in incomplete struct iov_iter
fs/btrfs/inode.c:8140:17: error: undefined identifier 'iov_iter_count'

Signed-off-by: Lad, Prabhakar <prabhakar.csengg@xxxxxxxxx>
---
 Noticed this issue on linux-next, with allmodconfig
 build.

 fs/btrfs/inode.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index aa8ce48..a938e74 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -42,6 +42,8 @@
 #include <linux/btrfs.h>
 #include <linux/blkdev.h>
 #include <linux/posix_acl_xattr.h>
+#include <linux/uio.h>
+
 #include "ctree.h"
 #include "disk-io.h"
 #include "transaction.h"
-- 
2.1.0

--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux