Skip to content

Commit

Permalink
vhost: Include linux/uio.h instead of linux/socket.h
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Asias He authored and David S. Miller committed Aug 20, 2013
1 parent 397b417 commit 35596b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/vhost/vhost.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 35596b2

Please sign in to comment.