Subject: [PATCH] nethost ipv4: make inet_host_init and inet_host_fini static From: Eric W. Biederman Date: 1136924419 -0700 --- include/net/ip_host.h | 2 -- net/ipv4/af_inet.c | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) 2df3e729fb2b4f086e66584a5a88f490a20a6de3 diff --git a/include/net/ip_host.h b/include/net/ip_host.h index 67f7517..0cc673b 100644 --- a/include/net/ip_host.h +++ b/include/net/ip_host.h @@ -20,8 +20,6 @@ struct ip_host struct inet_peer *peer_root; }; -extern int inet_host_init(struct nethost *host); -extern void inet_host_fini(struct nethost *host); extern struct ip_host *ip_host_get(struct nethost *host); #endif /* _NET_IP_HOST_H */ diff --git a/net/ipv4/af_inet.c b/net/ipv4/af_inet.c index d73e404..5957878 100644 --- a/net/ipv4/af_inet.c +++ b/net/ipv4/af_inet.c @@ -220,7 +220,7 @@ out: /* * Initialize the per host ipv4 state. */ -int inet_host_init(struct nethost *host) +static int inet_host_init(struct nethost *host) { if (!host->ip_host) { struct ip_host *ihost; @@ -244,7 +244,7 @@ int inet_host_init(struct nethost *host) * Cleanup the per host ipv4 state. */ -void inet_host_fini(struct nethost *host) +static void inet_host_fini(struct nethost *host) { struct ip_host *ihost; ihost = host->ip_host; -- 1.0.GIT