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 |
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 --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 */
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(+)