aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2013-09-22 13:32:17 -0400
committerDavid S. Miller <davem@davemloft.net>2013-09-23 01:51:08 -0400
commitf307c6365648e919d7ac733f0b3a7e9ee3e31eb2 (patch)
tree3427f21e58f75ef9ff3b8b634f5ca17b51730bb4 /include
parent6d3b334d677cd0c18cf99ababe1441b62dd08020 (diff)
protocol.h: Remove extern from function prototypes
There are a mix of function prototypes with and without extern in the kernel sources. Standardize on not using extern for function prototypes. Function prototypes don't need to be written with extern. extern is assumed by the compiler. Its use is as unnecessary as using auto to declare automatic/local variables in a block. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r--include/net/protocol.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/include/net/protocol.h b/include/net/protocol.h
index 047c0476c0a0..fbf7676c9a02 100644
--- a/include/net/protocol.h
+++ b/include/net/protocol.h
@@ -96,20 +96,20 @@ extern const struct net_offload __rcu *inet6_offloads[MAX_INET_PROTOS];
96extern const struct inet6_protocol __rcu *inet6_protos[MAX_INET_PROTOS]; 96extern const struct inet6_protocol __rcu *inet6_protos[MAX_INET_PROTOS];
97#endif 97#endif
98 98
99extern int inet_add_protocol(const struct net_protocol *prot, unsigned char num); 99int inet_add_protocol(const struct net_protocol *prot, unsigned char num);
100extern int inet_del_protocol(const struct net_protocol *prot, unsigned char num); 100int inet_del_protocol(const struct net_protocol *prot, unsigned char num);
101extern int inet_add_offload(const struct net_offload *prot, unsigned char num); 101int inet_add_offload(const struct net_offload *prot, unsigned char num);
102extern int inet_del_offload(const struct net_offload *prot, unsigned char num); 102int inet_del_offload(const struct net_offload *prot, unsigned char num);
103extern void inet_register_protosw(struct inet_protosw *p); 103void inet_register_protosw(struct inet_protosw *p);
104extern void inet_unregister_protosw(struct inet_protosw *p); 104void inet_unregister_protosw(struct inet_protosw *p);
105 105
106#if IS_ENABLED(CONFIG_IPV6) 106#if IS_ENABLED(CONFIG_IPV6)
107extern int inet6_add_protocol(const struct inet6_protocol *prot, unsigned char num); 107int inet6_add_protocol(const struct inet6_protocol *prot, unsigned char num);
108extern int inet6_del_protocol(const struct inet6_protocol *prot, unsigned char num); 108int inet6_del_protocol(const struct inet6_protocol *prot, unsigned char num);
109extern int inet6_register_protosw(struct inet_protosw *p); 109int inet6_register_protosw(struct inet_protosw *p);
110extern void inet6_unregister_protosw(struct inet_protosw *p); 110void inet6_unregister_protosw(struct inet_protosw *p);
111#endif 111#endif
112extern int inet6_add_offload(const struct net_offload *prot, unsigned char num); 112int inet6_add_offload(const struct net_offload *prot, unsigned char num);
113extern int inet6_del_offload(const struct net_offload *prot, unsigned char num); 113int inet6_del_offload(const struct net_offload *prot, unsigned char num);
114 114
115#endif /* _PROTOCOL_H */ 115#endif /* _PROTOCOL_H */