netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Andrew Grover <andy.grover@gmail.com>
To: netdev@oss.sgi.com
Subject: [PATCH] remove unused memcpy_tokerneliovec
Date: Thu, 14 Oct 2004 17:43:39 -0700	[thread overview]
Message-ID: <c0a09e5c0410141743149a6255@mail.gmail.com> (raw)

[-- 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);

                 reply	other threads:[~2004-10-15  0:43 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c0a09e5c0410141743149a6255@mail.gmail.com \
    --to=andy.grover@gmail.com \
    --cc=netdev@oss.sgi.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).