From d81b34dd264c876be4b8fc86bc9754e2b566a6a9 Mon Sep 17 00:00:00 2001 From: Christoph Hellwig Date: Mon, 6 Sep 2004 23:52:08 -0700 Subject: [PATCH] [IPV4]: Mark inet_family_ops static Signed-off-by: David S. Miller --- net/ipv4/af_inet.c | 3 +-- net/sctp/protocol.c | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/net/ipv4/af_inet.c b/net/ipv4/af_inet.c index ed2923791e0e6..c859b31fd0f1f 100644 --- a/net/ipv4/af_inet.c +++ b/net/ipv4/af_inet.c @@ -837,7 +837,7 @@ struct proto_ops inet_dgram_ops = { .sendpage = inet_sendpage, }; -struct net_proto_family inet_family_ops = { +static struct net_proto_family inet_family_ops = { .family = PF_INET, .create = inet_create, .owner = THIS_MODULE, @@ -1157,7 +1157,6 @@ EXPORT_SYMBOL(inet_accept); EXPORT_SYMBOL(inet_bind); EXPORT_SYMBOL(inet_dgram_connect); EXPORT_SYMBOL(inet_dgram_ops); -EXPORT_SYMBOL(inet_family_ops); EXPORT_SYMBOL(inet_getname); EXPORT_SYMBOL(inet_ioctl); EXPORT_SYMBOL(inet_listen); diff --git a/net/sctp/protocol.c b/net/sctp/protocol.c index bae07708eb01a..97f66fd770f4b 100644 --- a/net/sctp/protocol.c +++ b/net/sctp/protocol.c @@ -81,8 +81,6 @@ static struct sctp_af *sctp_af_v6_specific; kmem_cache_t *sctp_chunk_cachep; kmem_cache_t *sctp_bucket_cachep; -extern struct net_proto_family inet_family_ops; - extern int sctp_snmp_proc_init(void); extern int sctp_snmp_proc_exit(void); extern int sctp_eps_proc_init(void); -- 2.53.0