netdev
[Top] [All Lists]

[PATCH] mark inet_family_ops static

To: davem@xxxxxxxxxx
Subject: [PATCH] mark inet_family_ops static
From: Christoph Hellwig <hch@xxxxxx>
Date: Tue, 7 Sep 2004 17:19:18 +0200
Cc: netdev@xxxxxxxxxxx
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: Mutt/1.3.28i
except for a stale extern in net/sctp/protocol.c it's not referenced
anywhere outside af_inet.c


--- 1.74/net/ipv4/af_inet.c     2004-07-07 07:01:31 +02:00
+++ edited/net/ipv4/af_inet.c   2004-09-07 13:47:22 +02:00
@@ -837,7 +837,7 @@
        .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_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);
--- 1.72/net/sctp/protocol.c    2004-08-13 01:41:13 +02:00
+++ edited/net/sctp/protocol.c  2004-09-07 13:47:08 +02:00
@@ -81,8 +81,6 @@
 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);

<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH] mark inet_family_ops static, Christoph Hellwig <=