mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-26 16:41:25 +00:00
net: constify struct net_protocol
Remove long removed "inet_protocol_base" declaration. Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
e4c57d0f96
commit
32613090a9
14 changed files with 27 additions and 32 deletions
|
@ -94,15 +94,14 @@ struct inet_protosw {
|
|||
#define INET_PROTOSW_PERMANENT 0x02 /* Permanent protocols are unremovable. */
|
||||
#define INET_PROTOSW_ICSK 0x04 /* Is this an inet_connection_sock? */
|
||||
|
||||
extern struct net_protocol *inet_protocol_base;
|
||||
extern struct net_protocol *inet_protos[MAX_INET_PROTOS];
|
||||
extern const struct net_protocol *inet_protos[MAX_INET_PROTOS];
|
||||
|
||||
#if defined(CONFIG_IPV6) || defined (CONFIG_IPV6_MODULE)
|
||||
extern struct inet6_protocol *inet6_protos[MAX_INET_PROTOS];
|
||||
#endif
|
||||
|
||||
extern int inet_add_protocol(struct net_protocol *prot, unsigned char num);
|
||||
extern int inet_del_protocol(struct net_protocol *prot, unsigned char num);
|
||||
extern int inet_add_protocol(const struct net_protocol *prot, unsigned char num);
|
||||
extern int inet_del_protocol(const struct net_protocol *prot, unsigned char num);
|
||||
extern void inet_register_protosw(struct inet_protosw *p);
|
||||
extern void inet_unregister_protosw(struct inet_protosw *p);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue