diff options
| author | Adrian Bunk <bunk@stusta.de> | 2004-12-27 02:25:23 -0800 |
|---|---|---|
| committer | Thomas Graf <tgraf@suug.ch> | 2004-12-27 02:25:23 -0800 |
| commit | ca2628e3ffa30bc118dd87e86e2d7856006b6cc6 (patch) | |
| tree | 5c697e22e0ac1bc2ad4fcf90d9a7cd6aa09072c1 | |
| parent | 7206f627dec7e1ead78f8ad723af1eb6b193e023 (diff) | |
[NET]: No need to export sock_readv_writev
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
| -rw-r--r-- | include/linux/net.h | 4 | ||||
| -rw-r--r-- | net/socket.c | 5 |
2 files changed, 3 insertions, 6 deletions
diff --git a/include/linux/net.h b/include/linux/net.h index 368b0f9d3006..8bfb1243f5e2 100644 --- a/include/linux/net.h +++ b/include/linux/net.h @@ -187,10 +187,6 @@ extern int sock_sendmsg(struct socket *sock, struct msghdr *msg, size_t len); extern int sock_recvmsg(struct socket *sock, struct msghdr *msg, size_t size, int flags); -extern int sock_readv_writev(int type, struct inode *inode, - struct file *file, - const struct iovec *iov, long count, - size_t size); extern int sock_map_fd(struct socket *sock); extern struct socket *sockfd_lookup(int fd, int *err); #define sockfd_put(sock) fput(sock->file) diff --git a/net/socket.c b/net/socket.c index 45aada9314a1..dff6156dd4f8 100644 --- a/net/socket.c +++ b/net/socket.c @@ -736,8 +736,9 @@ ssize_t sock_sendpage(struct file *file, struct page *page, return sock->ops->sendpage(sock, page, offset, size, flags); } -int sock_readv_writev(int type, struct inode * inode, struct file * file, - const struct iovec * iov, long count, size_t size) +static int sock_readv_writev(int type, struct inode * inode, + struct file * file, const struct iovec * iov, + long count, size_t size) { struct msghdr msg; struct socket *sock; |
