net/socket.c: make a function static
Subsystems (3)
PATCH 1/1 net/socket.c: make a function static
The patch below makes a needlessly global function static.
diffstat output:
include/linux/net.h | 4 ---- net/socket.c | 5 +++-- 2 files changed, 3 insertions(+), 6 deletions(-)
Signed-off-by Adrian Bunk <[email protected]>
include/linux/net.h renamed from include/linux/net.h.old +0 -4
@@ -187,10 +187,6 @@ 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)
net/socket.c renamed from net/socket.c.old +3 -2
@@ -736,8 +736,9 @@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;
Quoted 1 line · On Sun, 12 Dec 2004 22:15:06 +0100 Adrian Bunk <[email protected]> wrote:
The patch below makes a needlessly global function static.
Applied, I think we used to use this for the compat layers.
Thanks Adrian.