aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/route.h
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2013-09-22 13:32:22 -0400
committerDavid S. Miller <davem@davemloft.net>2013-09-23 01:51:08 -0400
commit2702c4bb89b2a9bfe49f3db77a1bac88d5c6404c (patch)
tree7d2118ec4c248b5f8d237d5569b8cc99cfaed54f /include/net/route.h
parent54df3b961db19e3eb6ccbac0ca469c56b1b58689 (diff)
route.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/net/route.h')
-rw-r--r--include/net/route.h53
1 files changed, 28 insertions, 25 deletions
diff --git a/include/net/route.h b/include/net/route.h
index afdeeb5bec25..6f572ca66d25 100644
--- a/include/net/route.h
+++ b/include/net/route.h
@@ -108,13 +108,15 @@ struct rt_cache_stat {
108extern struct ip_rt_acct __percpu *ip_rt_acct; 108extern struct ip_rt_acct __percpu *ip_rt_acct;
109 109
110struct in_device; 110struct in_device;
111extern int ip_rt_init(void); 111
112extern void rt_cache_flush(struct net *net); 112int ip_rt_init(void);
113extern void rt_flush_dev(struct net_device *dev); 113void rt_cache_flush(struct net *net);
114extern struct rtable *__ip_route_output_key(struct net *, struct flowi4 *flp); 114void rt_flush_dev(struct net_device *dev);
115extern struct rtable *ip_route_output_flow(struct net *, struct flowi4 *flp, 115struct rtable *__ip_route_output_key(struct net *, struct flowi4 *flp);
116 struct sock *sk); 116struct rtable *ip_route_output_flow(struct net *, struct flowi4 *flp,
117extern struct dst_entry *ipv4_blackhole_route(struct net *net, struct dst_entry *dst_orig); 117 struct sock *sk);
118struct dst_entry *ipv4_blackhole_route(struct net *net,
119 struct dst_entry *dst_orig);
118 120
119static inline struct rtable *ip_route_output_key(struct net *net, struct flowi4 *flp) 121static inline struct rtable *ip_route_output_key(struct net *net, struct flowi4 *flp)
120{ 122{
@@ -162,8 +164,8 @@ static inline struct rtable *ip_route_output_gre(struct net *net, struct flowi4
162 return ip_route_output_key(net, fl4); 164 return ip_route_output_key(net, fl4);
163} 165}
164 166
165extern int ip_route_input_noref(struct sk_buff *skb, __be32 dst, __be32 src, 167int ip_route_input_noref(struct sk_buff *skb, __be32 dst, __be32 src,
166 u8 tos, struct net_device *devin); 168 u8 tos, struct net_device *devin);
167 169
168static inline int ip_route_input(struct sk_buff *skb, __be32 dst, __be32 src, 170static inline int ip_route_input(struct sk_buff *skb, __be32 dst, __be32 src,
169 u8 tos, struct net_device *devin) 171 u8 tos, struct net_device *devin)
@@ -179,24 +181,25 @@ static inline int ip_route_input(struct sk_buff *skb, __be32 dst, __be32 src,
179 return err; 181 return err;
180} 182}
181 183
182extern void ipv4_update_pmtu(struct sk_buff *skb, struct net *net, u32 mtu, 184void ipv4_update_pmtu(struct sk_buff *skb, struct net *net, u32 mtu, int oif,
183 int oif, u32 mark, u8 protocol, int flow_flags); 185 u32 mark, u8 protocol, int flow_flags);
184extern void ipv4_sk_update_pmtu(struct sk_buff *skb, struct sock *sk, u32 mtu); 186void ipv4_sk_update_pmtu(struct sk_buff *skb, struct sock *sk, u32 mtu);
185extern void ipv4_redirect(struct sk_buff *skb, struct net *net, 187void ipv4_redirect(struct sk_buff *skb, struct net *net, int oif, u32 mark,
186 int oif, u32 mark, u8 protocol, int flow_flags); 188 u8 protocol, int flow_flags);
187extern void ipv4_sk_redirect(struct sk_buff *skb, struct sock *sk); 189void ipv4_sk_redirect(struct sk_buff *skb, struct sock *sk);
188extern void ip_rt_send_redirect(struct sk_buff *skb); 190void ip_rt_send_redirect(struct sk_buff *skb);
189 191
190extern unsigned int inet_addr_type(struct net *net, __be32 addr); 192unsigned int inet_addr_type(struct net *net, __be32 addr);
191extern unsigned int inet_dev_addr_type(struct net *net, const struct net_device *dev, __be32 addr); 193unsigned int inet_dev_addr_type(struct net *net, const struct net_device *dev,
192extern void ip_rt_multicast_event(struct in_device *); 194 __be32 addr);
193extern int ip_rt_ioctl(struct net *, unsigned int cmd, void __user *arg); 195void ip_rt_multicast_event(struct in_device *);
194extern void ip_rt_get_source(u8 *src, struct sk_buff *skb, struct rtable *rt); 196int ip_rt_ioctl(struct net *, unsigned int cmd, void __user *arg);
195extern int ip_rt_dump(struct sk_buff *skb, struct netlink_callback *cb); 197void ip_rt_get_source(u8 *src, struct sk_buff *skb, struct rtable *rt);
198int ip_rt_dump(struct sk_buff *skb, struct netlink_callback *cb);
196 199
197struct in_ifaddr; 200struct in_ifaddr;
198extern void fib_add_ifaddr(struct in_ifaddr *); 201void fib_add_ifaddr(struct in_ifaddr *);
199extern void fib_del_ifaddr(struct in_ifaddr *, struct in_ifaddr *); 202void fib_del_ifaddr(struct in_ifaddr *, struct in_ifaddr *);
200 203
201static inline void ip_rt_put(struct rtable *rt) 204static inline void ip_rt_put(struct rtable *rt)
202{ 205{