diff options
author | Pavel Emelyanov <xemul@openvz.org> | 2007-11-01 00:29:45 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2007-11-01 00:29:45 -0700 |
commit | f1a6c4da14c365d3ee0b5de43a93f7470982637c (patch) | |
tree | 929b046ef28e1600cf08667459bd8c9a86069dc9 /include | |
parent | 261ab365fadd53ddc1b292b1663800e11fbf3e71 (diff) | |
download | linux-3.10-f1a6c4da14c365d3ee0b5de43a93f7470982637c.tar.gz linux-3.10-f1a6c4da14c365d3ee0b5de43a93f7470982637c.tar.bz2 linux-3.10-f1a6c4da14c365d3ee0b5de43a93f7470982637c.zip |
[NET]: Move the sock_copy() from the header
The sock_copy() call is not used outside the sock.c file,
so just move it into a sock.c
Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/sock.h | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/include/net/sock.h b/include/net/sock.h index 43fc3fa50d6..ecad7b4e2a6 100644 --- a/include/net/sock.h +++ b/include/net/sock.h @@ -993,20 +993,6 @@ static inline void sock_graft(struct sock *sk, struct socket *parent) write_unlock_bh(&sk->sk_callback_lock); } -static inline void sock_copy(struct sock *nsk, const struct sock *osk) -{ -#ifdef CONFIG_SECURITY_NETWORK - void *sptr = nsk->sk_security; -#endif - - memcpy(nsk, osk, osk->sk_prot->obj_size); - get_net(nsk->sk_net); -#ifdef CONFIG_SECURITY_NETWORK - nsk->sk_security = sptr; - security_sk_clone(osk, nsk); -#endif -} - extern int sock_i_uid(struct sock *sk); extern unsigned long sock_i_ino(struct sock *sk); |