diff options
author | Asias He <asias@redhat.com> | 2013-08-19 09:23:19 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-08-20 15:05:04 -0700 |
commit | 35596b2796713c6a9dc05759837fa9f0e156a200 (patch) | |
tree | 98cfa9d8437a405da8e05a2f6b311f9273ffae2c /drivers/vhost | |
parent | 397b41746333ad386d91d23ea0f79481320dcdcc (diff) | |
download | linux-35596b2796713c6a9dc05759837fa9f0e156a200.tar.bz2 |
vhost: Include linux/uio.h instead of linux/socket.h
memcpy_fromiovec is moved from net/core/iovec.c to lib/iovec.c.
linux/uio.h provides the declaration for memcpy_fromiovec.
Include linux/uio.h instead of inux/socket.h for it.
Signed-off-by: Asias He <asias@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/vhost')
-rw-r--r-- | drivers/vhost/vhost.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/vhost/vhost.c b/drivers/vhost/vhost.c index e58cf0001cee..448efe01f18a 100644 --- a/drivers/vhost/vhost.c +++ b/drivers/vhost/vhost.c @@ -13,7 +13,7 @@ #include <linux/eventfd.h> #include <linux/vhost.h> -#include <linux/socket.h> /* memcpy_fromiovec */ +#include <linux/uio.h> #include <linux/mm.h> #include <linux/mmu_context.h> #include <linux/miscdevice.h> |