Hoist memcpy_fromiovec/memcpy_toiovec into lib/
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 16 May 2013 23:35:21 +0000 (09:05 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 20 May 2013 00:54:22 +0000 (10:24 +0930)
commitd2f83e9078b8114e3b9d09082856c1aac299aa37
tree707f0d810d28e000eb3f9a775be880687dde1030
parentd5fe85af85367d5892e4308f596de4e2a5fb9017
Hoist memcpy_fromiovec/memcpy_toiovec into lib/

ERROR: "memcpy_fromiovec" [drivers/vhost/vhost_scsi.ko] undefined!

That function is only present with CONFIG_NET.  Turns out that
crypto/algif_skcipher.c also uses that outside net, but it actually
needs sockets anyway.

In addition, commit 6d4f0139d642c45411a47879325891ce2a7c164a added
CONFIG_NET dependency to CONFIG_VMCI for memcpy_toiovec, so hoist
that function and revert that commit too.

socket.h already includes uio.h, so no callers need updating; trying
only broke things fo x86_64 randconfig (thanks Fengguang!).

Reported-by: Randy Dunlap <rdunlap@infradead.org>
Acked-by: David S. Miller <davem@davemloft.net>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
drivers/misc/vmw_vmci/Kconfig
drivers/misc/vmw_vmci/vmci_queue_pair.c
include/linux/socket.h
include/linux/uio.h
lib/Makefile
lib/iovec.c [new file with mode: 0644]
net/core/iovec.c