linux/net.h: bye bye struct net_proto
Subsystems (4)
PATCH 1/1 linux/net.h: bye bye struct net_proto
Hi David,
Please consider pulling from:
bk://kernel.bkbits.net/acme/net-2.5
Still the same tree, not yet updated to linus's.
- Arnaldo
You can import this changeset into BK by piping this whole message to:
'| bk receive [path to repository]' or apply the patch as usual.
===================================================================
[email protected], 2003-04-03 11:08:27-03:00, [email protected]
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.
include/linux/atm.h | 11 ----------- include/linux/if_pppox.h | 2 -- include/linux/inet.h | 7 +------ include/linux/net.h | 10 ---------- include/net/af_unix.h | 1 - net/atm/common.c | 3 +-- net/atm/pvc.c | 7 +++---- net/atm/svc.c | 7 +++---- net/ipv4/af_inet.c | 2 +- net/unix/af_unix.c | 5 ++--- 10 files changed, 11 insertions(+), 44 deletions(-)
include/linux/atm.h +0 -11
@@ -236,15 +236,4 @@ };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
include/linux/if_pppox.h +0 -2
@@ -158,8 +158,6 @@extern struct ppp_channel_ops pppoe_chan_ops; -extern int pppox_proto_init (struct net_proto *np); -#endif /* __KERNEL__ */ #endif /* !(__LINUX_IF_PPPOX_H) */
include/linux/inet.h +1 -6
@@ -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 */
include/linux/net.h +0 -10
@@ -136,16 +136,6 @@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);
include/net/af_unix.h +0 -1
@@ -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 ;
net/atm/common.c +1 -2
@@ -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 */
net/atm/pvc.c +3 -4
@@ -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 struct net_proto_family pvc_family_ops = { - .family =PF_ATMPVC , - .create =pvc_create, + .family =PF_ATMPVC , + .create = pvc_create, };
net/atm/svc.c +3 -4
@@ -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 struct net_proto_family svc_family_ops = { - .family =PF_ATMSVC , - .create =svc_create, + .family =PF_ATMSVC , + .create = svc_create, };
net/ipv4/af_inet.c +1 -1
@@ -1122,7 +1122,7 @@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 ; }
net/unix/af_unix.c +2 -3
@@ -1945,9 +1945,8 @@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 */
===================================================================
This BitKeeper patch contains the following changesets:
1.1003
## Wrapped with gzip_uu ##
M'XL( .!#C#X ^V:VV[;1A"&K\6G6"0H8*<6M6>2:FTX<0XUTB:&D_2F+83E M<FD1%DF!I!RKY<-W2#FR)%,G-D!O9,D'[8JCGS,?9V>6?HZ^Y";K=Y2.C?4< M_9+F1;^CT\3H(KI3MDYCV\]@XCI-8:(W3&/3>_6^EYBB2VUAP<R5*O00W9DL M[W>(S>8CQ71L^IWK-^^^_/KRVK).3]'%4"4WYI,IT.FI5:39G1H%^;DJAJ,T ML8M,)7ELBOHSR_E;2XHQA8<@#L-"ED1B[I2:!(0H3DR *7<EMRKYYZNREZTP MS#&EC'F<EY(1%UNO$;$)3"#,>ICWX ]"^MCM4Z>+61]CU&@5_4@PZF+K%?J^ MIW!A:92B491,[BOWVL,^\J>F_LZ+;*(+!*.#<986*;P3GJNC*,I1DA9()=,X MS0Q,F, $)TCEJ!@:5+]'IZ,<#AVJ.U,-1AF*DJA X22!4TR3',4JNS5!=<Q@ M4$V=U"8K4U%R T>:^_$HTG"(5B/0>F-;[Y&D5 KKZC&^5G?/+\O""EMG6SP:
M)7HT"4SEG9X*!Y,DNK>'B][UN%L*X0I:JL!1H0P])AVJ?"V;0[G>8@4+(QR[ MQ"N9ZWJ[BYL%, H'X_$X?:*/E]AA I<N]P7GQFCE&*8==XN^)J.+$H7G86]/ MB35CR^IP23UXE))[F$C&B:NPDL;LI&YN;TD8IIZSK^\:E0D"HDI!N92$.E*( MP T#MIO?&J41%Z[&K=)J,HJX!W_',*D79'&,:T%8E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(M=3N.SX/HQJ0;[$ -0"J. M*:&EX!+/[AURVJ(&.-26"ZU+O1_< /%R!%IU+H0*X/CRX7>G,\ZBI+@]>O_F M^L/@XOKR,WKV0]Y'8Y5$^L_DV0FH?OOEP\7GRX\?!H.';OKIIO]N'+:Y[]#$ M8=,-AT<.J2>=68L#3=J>'%+490<.YQS.[MTT<+@<@58<0A^*&'#H"5SEPBA$ M1WGTMTG#HX?3KVP/\EM_,%99G!^C,_0P'TSB>%K-=,^T?WR,_FE!\;=_QM!# 6HV_S27P:>H'O0D-C_0O4A,_X^2$
From: Arnaldo Carvalho de Melo <[email protected]>
Date: Thu, 3 Apr 2003 11:40:03 -0300
Please consider pulling from:
bk://kernel.bkbits.net/acme/net-2.5
Still the same tree, not yet updated to linus's.
Pulled, thanks.