* [PATCH] remove unused memcpy_tokerneliovec
@ 2004-10-15 0:43 Andrew Grover
0 siblings, 0 replies; only message in thread
From: Andrew Grover @ 2004-10-15 0:43 UTC (permalink / raw)
To: netdev
[-- Attachment #1: Type: text/plain, Size: 107 bytes --]
This removes an unused function in net/core/iovec.c.
Signed-off-by: Andy Grover <andrew.grover@intel.com>
[-- Attachment #2: iovec.diff --]
[-- Type: application/octet-stream, Size: 1578 bytes --]
===== include/linux/socket.h 1.12 vs edited =====
--- 1.12/include/linux/socket.h 2004-09-08 13:40:01 -07:00
+++ edited/include/linux/socket.h 2004-10-14 17:35:05 -07:00
@@ -282,7 +282,6 @@
extern int verify_iovec(struct msghdr *m, struct iovec *iov, char *address, int mode);
extern int memcpy_toiovec(struct iovec *v, unsigned char *kdata, int len);
-extern void memcpy_tokerneliovec(struct iovec *iov, unsigned char *kdata, int len);
extern int move_addr_to_user(void *kaddr, int klen, void __user *uaddr, int __user *ulen);
extern int move_addr_to_kernel(void __user *uaddr, int ulen, void *kaddr);
extern int put_cmsg(struct msghdr*, int level, int type, int len, void *data);
===== net/core/iovec.c 1.12 vs edited =====
--- 1.12/net/core/iovec.c 2004-06-03 18:47:54 -07:00
+++ edited/net/core/iovec.c 2004-10-14 17:33:59 -07:00
@@ -99,28 +99,6 @@
}
/*
- * In kernel copy to iovec. Returns -EFAULT on error.
- *
- * Note: this modifies the original iovec.
- */
-
-void memcpy_tokerneliovec(struct iovec *iov, unsigned char *kdata, int len)
-{
- while (len > 0) {
- if (iov->iov_len) {
- int copy = min_t(unsigned int, iov->iov_len, len);
- memcpy(iov->iov_base, kdata, copy);
- kdata += copy;
- len -= copy;
- iov->iov_len -= copy;
- iov->iov_base += copy;
- }
- iov++;
- }
-}
-
-
-/*
* Copy iovec to kernel. Returns -EFAULT on error.
*
* Note: this modifies the original iovec.
@@ -259,4 +237,3 @@
EXPORT_SYMBOL(memcpy_fromiovec);
EXPORT_SYMBOL(memcpy_fromiovecend);
EXPORT_SYMBOL(memcpy_toiovec);
-EXPORT_SYMBOL(memcpy_tokerneliovec);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-10-15 0:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-15 0:43 [PATCH] remove unused memcpy_tokerneliovec Andrew Grover
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).