[PATCH 02/12] ip*.h: Remove extern from function prototypes

2013-09-21 Thread Joe Perches
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 
---
 include/net/ip.h| 169 +++---
 include/net/ip6_fib.h   |  53 +-
 include/net/ip6_route.h |  98 --
 include/net/ip_fib.h|  61 ++-
 include/net/ip_vs.h | 245 +--
 include/net/ipv6.h  | 268 +---
 6 files changed, 416 insertions(+), 478 deletions(-)

diff --git a/include/net/ip.h b/include/net/ip.h
index 5e52688..c1f192b 100644
--- a/include/net/ip.h
+++ b/include/net/ip.h
@@ -86,53 +86,51 @@ struct packet_type;
 struct rtable;
 struct sockaddr;
 
-extern int igmp_mc_proc_init(void);
+int igmp_mc_proc_init(void);
 
 /*
  * Functions provided by ip.c
  */
 
-extern int ip_build_and_send_pkt(struct sk_buff *skb, struct sock 
*sk,
- __be32 saddr, __be32 daddr,
- struct ip_options_rcu *opt);
-extern int ip_rcv(struct sk_buff *skb, struct net_device *dev,
-  struct packet_type *pt, struct net_device 
*orig_dev);
-extern int ip_local_deliver(struct sk_buff *skb);
-extern int ip_mr_input(struct sk_buff *skb);
-extern int ip_output(struct sk_buff *skb);
-extern int ip_mc_output(struct sk_buff *skb);
-extern int ip_fragment(struct sk_buff *skb, int (*output)(struct 
sk_buff *));
-extern int ip_do_nat(struct sk_buff *skb);
-extern voidip_send_check(struct iphdr *ip);
-extern int __ip_local_out(struct sk_buff *skb);
-extern int ip_local_out(struct sk_buff *skb);
-extern int ip_queue_xmit(struct sk_buff *skb, struct flowi *fl);
-extern voidip_init(void);
-extern int ip_append_data(struct sock *sk, struct flowi4 *fl4,
-  int getfrag(void *from, char *to, int 
offset, int len,
-  int odd, struct sk_buff 
*skb),
-   void *from, int len, int protolen,
-   struct ipcm_cookie *ipc,
-   struct rtable **rt,
-   unsigned int flags);
-extern int ip_generic_getfrag(void *from, char *to, int offset, 
int len, int odd, struct sk_buff *skb);
-extern ssize_t ip_append_page(struct sock *sk, struct flowi4 *fl4, 
struct page *page,
-   int offset, size_t size, int flags);
-extern struct sk_buff  *__ip_make_skb(struct sock *sk,
- struct flowi4 *fl4,
- struct sk_buff_head *queue,
- struct inet_cork *cork);
-extern int ip_send_skb(struct net *net, struct sk_buff *skb);
-extern int ip_push_pending_frames(struct sock *sk, struct flowi4 
*fl4);
-extern voidip_flush_pending_frames(struct sock *sk);
-extern struct sk_buff  *ip_make_skb(struct sock *sk,
-   struct flowi4 *fl4,
-   int getfrag(void *from, char *to, int 
offset, int len,
-   int odd, struct sk_buff *skb),
-   void *from, int length, int transhdrlen,
-   struct ipcm_cookie *ipc,
-   struct rtable **rtp,
-   unsigned int flags);
+int ip_build_and_send_pkt(struct sk_buff *skb, struct sock *sk,
+ __be32 saddr, __be32 daddr,
+ struct ip_options_rcu *opt);
+int ip_rcv(struct sk_buff *skb, struct net_device *dev, struct packet_type *pt,
+  struct net_device *orig_dev);
+int ip_local_deliver(struct sk_buff *skb);
+int ip_mr_input(struct sk_buff *skb);
+int ip_output(struct sk_buff *skb);
+int ip_mc_output(struct sk_buff *skb);
+int ip_fragment(struct sk_buff *skb, int (*output)(struct sk_buff *));
+int ip_do_nat(struct sk_buff *skb);
+void ip_send_check(struct iphdr *ip);
+int __ip_local_out(struct sk_buff *skb);
+int ip_local_out(struct sk_buff *skb);
+int ip_queue_xmit(struct sk_buff *skb, struct flowi *fl);
+void ip_init(void);
+int ip_append_data(struct sock *sk, struct flowi4 *fl4,
+  int getfrag(void *from, char *to, int offset, int len,
+  int odd, struct sk_buff *skb),
+  void *from, int len, int protolen,
+  struct ipcm_cookie *ipc,
+  

[PATCH 02/12] ip*.h: Remove extern from function prototypes

2013-09-21 Thread Joe Perches
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 j...@perches.com
---
 include/net/ip.h| 169 +++---
 include/net/ip6_fib.h   |  53 +-
 include/net/ip6_route.h |  98 --
 include/net/ip_fib.h|  61 ++-
 include/net/ip_vs.h | 245 +--
 include/net/ipv6.h  | 268 +---
 6 files changed, 416 insertions(+), 478 deletions(-)

diff --git a/include/net/ip.h b/include/net/ip.h
index 5e52688..c1f192b 100644
--- a/include/net/ip.h
+++ b/include/net/ip.h
@@ -86,53 +86,51 @@ struct packet_type;
 struct rtable;
 struct sockaddr;
 
-extern int igmp_mc_proc_init(void);
+int igmp_mc_proc_init(void);
 
 /*
  * Functions provided by ip.c
  */
 
-extern int ip_build_and_send_pkt(struct sk_buff *skb, struct sock 
*sk,
- __be32 saddr, __be32 daddr,
- struct ip_options_rcu *opt);
-extern int ip_rcv(struct sk_buff *skb, struct net_device *dev,
-  struct packet_type *pt, struct net_device 
*orig_dev);
-extern int ip_local_deliver(struct sk_buff *skb);
-extern int ip_mr_input(struct sk_buff *skb);
-extern int ip_output(struct sk_buff *skb);
-extern int ip_mc_output(struct sk_buff *skb);
-extern int ip_fragment(struct sk_buff *skb, int (*output)(struct 
sk_buff *));
-extern int ip_do_nat(struct sk_buff *skb);
-extern voidip_send_check(struct iphdr *ip);
-extern int __ip_local_out(struct sk_buff *skb);
-extern int ip_local_out(struct sk_buff *skb);
-extern int ip_queue_xmit(struct sk_buff *skb, struct flowi *fl);
-extern voidip_init(void);
-extern int ip_append_data(struct sock *sk, struct flowi4 *fl4,
-  int getfrag(void *from, char *to, int 
offset, int len,
-  int odd, struct sk_buff 
*skb),
-   void *from, int len, int protolen,
-   struct ipcm_cookie *ipc,
-   struct rtable **rt,
-   unsigned int flags);
-extern int ip_generic_getfrag(void *from, char *to, int offset, 
int len, int odd, struct sk_buff *skb);
-extern ssize_t ip_append_page(struct sock *sk, struct flowi4 *fl4, 
struct page *page,
-   int offset, size_t size, int flags);
-extern struct sk_buff  *__ip_make_skb(struct sock *sk,
- struct flowi4 *fl4,
- struct sk_buff_head *queue,
- struct inet_cork *cork);
-extern int ip_send_skb(struct net *net, struct sk_buff *skb);
-extern int ip_push_pending_frames(struct sock *sk, struct flowi4 
*fl4);
-extern voidip_flush_pending_frames(struct sock *sk);
-extern struct sk_buff  *ip_make_skb(struct sock *sk,
-   struct flowi4 *fl4,
-   int getfrag(void *from, char *to, int 
offset, int len,
-   int odd, struct sk_buff *skb),
-   void *from, int length, int transhdrlen,
-   struct ipcm_cookie *ipc,
-   struct rtable **rtp,
-   unsigned int flags);
+int ip_build_and_send_pkt(struct sk_buff *skb, struct sock *sk,
+ __be32 saddr, __be32 daddr,
+ struct ip_options_rcu *opt);
+int ip_rcv(struct sk_buff *skb, struct net_device *dev, struct packet_type *pt,
+  struct net_device *orig_dev);
+int ip_local_deliver(struct sk_buff *skb);
+int ip_mr_input(struct sk_buff *skb);
+int ip_output(struct sk_buff *skb);
+int ip_mc_output(struct sk_buff *skb);
+int ip_fragment(struct sk_buff *skb, int (*output)(struct sk_buff *));
+int ip_do_nat(struct sk_buff *skb);
+void ip_send_check(struct iphdr *ip);
+int __ip_local_out(struct sk_buff *skb);
+int ip_local_out(struct sk_buff *skb);
+int ip_queue_xmit(struct sk_buff *skb, struct flowi *fl);
+void ip_init(void);
+int ip_append_data(struct sock *sk, struct flowi4 *fl4,
+  int getfrag(void *from, char *to, int offset, int len,
+  int odd, struct sk_buff *skb),
+  void *from, int len, int protolen,
+  struct