diff mbox series

[-next] virtio-fs: Add missing include file

Message ID 20190902143915.20576-1-yuehaibing@huawei.com (mailing list archive)
State New, archived
Headers show
Series [-next] virtio-fs: Add missing include file | expand

Commit Message

Yue Haibing Sept. 2, 2019, 2:39 p.m. UTC
fs/fuse/virtio_fs.c: In function virtio_fs_requests_done_work:
fs/fuse/virtio_fs.c:348:6: error: implicit declaration of function zero_user_segment;
 did you mean get_user_pages? [-Werror=implicit-function-declaration]
      zero_user_segment(page, len, thislen);
      ^~~~~~~~~~~~~~~~~
      get_user_pages

Add missing include file <linux/highmem.h>

Reported-by: Hulk Robot <hulkci@huawei.com>
Fixes: 08f3aab37d99 ("virtio-fs: add virtiofs filesystem")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 fs/fuse/virtio_fs.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Miklos Szeredi Sept. 2, 2019, 6:05 p.m. UTC | #1
On Mon, Sep 2, 2019 at 4:43 PM YueHaibing <yuehaibing@huawei.com> wrote:
>
> fs/fuse/virtio_fs.c: In function virtio_fs_requests_done_work:
> fs/fuse/virtio_fs.c:348:6: error: implicit declaration of function zero_user_segment;
>  did you mean get_user_pages? [-Werror=implicit-function-declaration]
>       zero_user_segment(page, len, thislen);
>       ^~~~~~~~~~~~~~~~~
>       get_user_pages
>
> Add missing include file <linux/highmem.h>

Thanks, folded.

Miklos
diff mbox series

Patch

diff --git a/fs/fuse/virtio_fs.c b/fs/fuse/virtio_fs.c
index b92dfb1..e731c4f 100644
--- a/fs/fuse/virtio_fs.c
+++ b/fs/fuse/virtio_fs.c
@@ -10,6 +10,7 @@ 
 #include <linux/virtio_fs.h>
 #include <linux/delay.h>
 #include <linux/fs_context.h>
+#include <linux/highmem.h>
 #include "fuse_i.h"
 
 /* List of virtio-fs device instances and a lock for the list */