summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@conectiva.com.br>2003-04-03 05:08:27 -0300
committerArnaldo Carvalho de Melo <acme@conectiva.com.br>2003-04-03 05:08:27 -0300
commitf9d752e792b1419191fa6989c2163bd2c3d4cf6d (patch)
tree18e435a07f3850ac3f8eb9747b6e85b19d2f0d10
parentfb99146a4c2c82d5f02a12e3b7eb8c10bf7e77d5 (diff)
o linux/net.h: bye bye struct net_proto
struct net_proto is not anymore needed, as the protocols have their init functions marked as __init, not needing explicit calling.
-rw-r--r--include/linux/atm.h11
-rw-r--r--include/linux/if_pppox.h2
-rw-r--r--include/linux/inet.h7
-rw-r--r--include/linux/net.h10
-rw-r--r--include/net/af_unix.h1
-rw-r--r--net/atm/common.c3
-rw-r--r--net/atm/pvc.c7
-rw-r--r--net/atm/svc.c7
-rw-r--r--net/ipv4/af_inet.c2
-rw-r--r--net/unix/af_unix.c5
10 files changed, 11 insertions, 44 deletions
diff --git a/include/linux/atm.h b/include/linux/atm.h
index b5d4c29ba6c4..0380156f9c86 100644
--- a/include/linux/atm.h
+++ b/include/linux/atm.h
@@ -236,15 +236,4 @@ struct atmif_sioc {
};
typedef unsigned short atm_backend_t;
-
-#ifdef __KERNEL__
-
-#include <linux/net.h> /* struct net_proto */
-
-
-void atmpvc_proto_init(struct net_proto *pro);
-void atmsvc_proto_init(struct net_proto *pro);
-
-#endif /* __KERNEL__ */
-
#endif
diff --git a/include/linux/if_pppox.h b/include/linux/if_pppox.h
index a4633c570266..948826892b82 100644
--- a/include/linux/if_pppox.h
+++ b/include/linux/if_pppox.h
@@ -158,8 +158,6 @@ enum {
extern struct ppp_channel_ops pppoe_chan_ops;
-extern int pppox_proto_init(struct net_proto *np);
-
#endif /* __KERNEL__ */
#endif /* !(__LINUX_IF_PPPOX_H) */
diff --git a/include/linux/inet.h b/include/linux/inet.h
index ffbfe45a365d..af4fa41bd632 100644
--- a/include/linux/inet.h
+++ b/include/linux/inet.h
@@ -43,11 +43,6 @@
#define _LINUX_INET_H
#ifdef __KERNEL__
-
-#include <linux/net.h>
-
-extern void inet_proto_init(struct net_proto *pro);
-extern __u32 in_aton(const char *str);
-
+extern __u32 in_aton(const char *str);
#endif
#endif /* _LINUX_INET_H */
diff --git a/include/linux/net.h b/include/linux/net.h
index a670cf44fa9f..55083c938298 100644
--- a/include/linux/net.h
+++ b/include/linux/net.h
@@ -136,16 +136,6 @@ struct net_proto_family {
short encrypt_net;
};
-/**
- * struct socket - network interface with the file system
- * @name - Protocol name
- * @init_func - Bootstrap
- */
-struct net_proto {
- const char *name;
- void (*init_func)(struct net_proto *pro);
-};
-
extern int sock_wake_async(struct socket *sk, int how, int band);
extern int sock_register(struct net_proto_family *fam);
extern int sock_unregister(int family);
diff --git a/include/net/af_unix.h b/include/net/af_unix.h
index d526b746b4b9..db82099b2b17 100644
--- a/include/net/af_unix.h
+++ b/include/net/af_unix.h
@@ -1,6 +1,5 @@
#ifndef __LINUX_NET_AFUNIX_H
#define __LINUX_NET_AFUNIX_H
-extern void unix_proto_init(struct net_proto *pro);
extern void unix_inflight(struct file *fp);
extern void unix_notinflight(struct file *fp);
typedef struct sock unix_socket;
diff --git a/net/atm/common.c b/net/atm/common.c
index 913ae4749588..addb78f2bc28 100644
--- a/net/atm/common.c
+++ b/net/atm/common.c
@@ -6,8 +6,7 @@
#include <linux/config.h>
#include <linux/module.h>
#include <linux/kmod.h>
-#include <linux/net.h> /* struct socket, struct net_proto, struct
- proto_ops */
+#include <linux/net.h> /* struct socket, struct proto_ops */
#include <linux/atm.h> /* ATM stuff */
#include <linux/atmdev.h>
#include <linux/atmclip.h> /* CLIP_*ENCAP */
diff --git a/net/atm/pvc.c b/net/atm/pvc.c
index fd2a99bba4f6..cbac7fddf952 100644
--- a/net/atm/pvc.c
+++ b/net/atm/pvc.c
@@ -4,8 +4,7 @@
#include <linux/config.h>
-#include <linux/net.h> /* struct socket, struct net_proto,
- struct proto_ops */
+#include <linux/net.h> /* struct socket, struct proto_ops */
#include <linux/atm.h> /* ATM stuff */
#include <linux/atmdev.h> /* ATM devices */
#include <linux/atmclip.h> /* Classical IP over ATM */
@@ -111,8 +110,8 @@ static int pvc_create(struct socket *sock,int protocol)
static struct net_proto_family pvc_family_ops = {
- .family =PF_ATMPVC,
- .create =pvc_create,
+ .family = PF_ATMPVC,
+ .create = pvc_create,
};
diff --git a/net/atm/svc.c b/net/atm/svc.c
index fb9fc7d95397..6201170b5397 100644
--- a/net/atm/svc.c
+++ b/net/atm/svc.c
@@ -4,8 +4,7 @@
#include <linux/string.h>
-#include <linux/net.h> /* struct socket, struct net_proto,
- struct proto_ops */
+#include <linux/net.h> /* struct socket, struct proto_ops */
#include <linux/errno.h> /* error codes */
#include <linux/kernel.h> /* printk */
#include <linux/skbuff.h>
@@ -430,8 +429,8 @@ static int svc_create(struct socket *sock,int protocol)
static struct net_proto_family svc_family_ops = {
- .family =PF_ATMSVC,
- .create =svc_create,
+ .family = PF_ATMSVC,
+ .create = svc_create,
};
diff --git a/net/ipv4/af_inet.c b/net/ipv4/af_inet.c
index 2555a4e02dec..2082abcdc2d3 100644
--- a/net/ipv4/af_inet.c
+++ b/net/ipv4/af_inet.c
@@ -1122,7 +1122,7 @@ static int __init inet_init(void)
printk(KERN_INFO "NET4: Linux TCP/IP 1.0 for NET4.0\n");
if (sizeof(struct inet_skb_parm) > sizeof(dummy_skb->cb)) {
- printk(KERN_CRIT "inet_proto_init: panic\n");
+ printk(KERN_CRIT "%s: panic\n", __FUNCTION__);
return -EINVAL;
}
diff --git a/net/unix/af_unix.c b/net/unix/af_unix.c
index 1cc95eb5a702..45a143c520da 100644
--- a/net/unix/af_unix.c
+++ b/net/unix/af_unix.c
@@ -1945,9 +1945,8 @@ static int __init af_unix_init(void)
struct sk_buff *dummy_skb;
printk(banner);
- if (sizeof(struct unix_skb_parms) > sizeof(dummy_skb->cb))
- {
- printk(KERN_CRIT "unix_proto_init: panic\n");
+ if (sizeof(struct unix_skb_parms) > sizeof(dummy_skb->cb)) {
+ printk(KERN_CRIT "%s: panic\n", __FUNCTION__);
return -1;
}
/* allocate our sock slab cache */