Commit 0ad6ad946167a706e22eb7bad9e77735bc577074
Committed by
David S. Miller
1 parent
c64b5c4b91
Exists in
master
and in
16 other branches
raw/rawv6.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>
Showing 2 changed files with 4 additions and 5 deletions Side-by-side Diff
include/net/raw.h
... | ... | @@ -26,7 +26,7 @@ |
26 | 26 | void raw_icmp_error(struct sk_buff *, int, u32); |
27 | 27 | int raw_local_deliver(struct sk_buff *, int); |
28 | 28 | |
29 | -extern int raw_rcv(struct sock *, struct sk_buff *); | |
29 | +int raw_rcv(struct sock *, struct sk_buff *); | |
30 | 30 | |
31 | 31 | #define RAW_HTABLE_SIZE MAX_INET_PROTOS |
32 | 32 | |
... | ... | @@ -36,8 +36,8 @@ |
36 | 36 | }; |
37 | 37 | |
38 | 38 | #ifdef CONFIG_PROC_FS |
39 | -extern int raw_proc_init(void); | |
40 | -extern void raw_proc_exit(void); | |
39 | +int raw_proc_init(void); | |
40 | +void raw_proc_exit(void); | |
41 | 41 | |
42 | 42 | struct raw_iter_state { |
43 | 43 | struct seq_net_private p; |
include/net/rawv6.h
... | ... | @@ -7,8 +7,7 @@ |
7 | 7 | u8 type, u8 code, int inner_offset, __be32); |
8 | 8 | bool raw6_local_deliver(struct sk_buff *, int); |
9 | 9 | |
10 | -extern int rawv6_rcv(struct sock *sk, | |
11 | - struct sk_buff *skb); | |
10 | +int rawv6_rcv(struct sock *sk, struct sk_buff *skb); | |
12 | 11 | |
13 | 12 | #if defined(CONFIG_IPV6_MIP6) || defined(CONFIG_IPV6_MIP6_MODULE) |
14 | 13 | int rawv6_mh_filter_register(int (*filter)(struct sock *sock, |