diff options
author | 2014-06-19 21:22:56 +0300 | |
---|---|---|
committer | 2014-06-27 11:47:58 -0700 | |
commit | ac5ccdba3a1659b3517e7e99ef7d35a6a2d77cf4 (patch) | |
tree | cbbec5559a3cb50e47c73494a9f256155a284efe /include/linux/uio.h | |
parent | iscsi-target: Avoid rejecting incorrect ITT for Data-Out (diff) | |
download | linux-ac5ccdba3a1659b3517e7e99ef7d35a6a2d77cf4.tar.gz linux-ac5ccdba3a1659b3517e7e99ef7d35a6a2d77cf4.tar.bz2 linux-ac5ccdba3a1659b3517e7e99ef7d35a6a2d77cf4.zip |
iovec: move memcpy_from/toiovecend to lib/iovec.c
ERROR: "memcpy_fromiovecend" [drivers/vhost/vhost_scsi.ko] undefined!
commit 9f977ef7b671f6169eca78bf40f230fe84b7c7e5
vhost-scsi: Include prot_bytes into expected data transfer length
in target-pending makes drivers/vhost/scsi.c call memcpy_fromiovecend().
This function is not available when CONFIG_NET is not enabled.
socket.h already includes uio.h, so no callers need updating.
Reported-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: "David S. Miller" <davem@davemloft.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'include/linux/uio.h')
-rw-r--r-- | include/linux/uio.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/linux/uio.h b/include/linux/uio.h index e2231e47cec1..04c8c4bb4927 100644 --- a/include/linux/uio.h +++ b/include/linux/uio.h @@ -111,6 +111,9 @@ static inline void iov_iter_reexpand(struct iov_iter *i, size_t count) int memcpy_fromiovec(unsigned char *kdata, struct iovec *iov, int len); int memcpy_toiovec(struct iovec *iov, unsigned char *kdata, int len); - +int memcpy_fromiovecend(unsigned char *kdata, const struct iovec *iov, + int offset, int len); +int memcpy_toiovecend(const struct iovec *v, unsigned char *kdata, + int offset, int len); #endif |