diff options
author | Joe Perches <joe@perches.com> | 2013-10-18 16:48:25 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-10-19 19:12:11 -0400 |
commit | c1b1203d65955c179fec617ff17a21273f33a414 (patch) | |
tree | a84a93bae0abe5e796dce767a320ab4262ffb63f /net/tipc | |
parent | 7e58487b8cf5871d2a0fa03892dbd4b3a620d07f (diff) |
net: misc: 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 'net/tipc')
-rw-r--r-- | net/tipc/core.h | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/net/tipc/core.h b/net/tipc/core.h index be72f8cebc53..94895d4e86ab 100644 --- a/net/tipc/core.h +++ b/net/tipc/core.h | |||
@@ -90,21 +90,21 @@ extern int tipc_random __read_mostly; | |||
90 | /* | 90 | /* |
91 | * Routines available to privileged subsystems | 91 | * Routines available to privileged subsystems |
92 | */ | 92 | */ |
93 | extern int tipc_core_start_net(unsigned long); | 93 | int tipc_core_start_net(unsigned long); |
94 | extern int tipc_handler_start(void); | 94 | int tipc_handler_start(void); |
95 | extern void tipc_handler_stop(void); | 95 | void tipc_handler_stop(void); |
96 | extern int tipc_netlink_start(void); | 96 | int tipc_netlink_start(void); |
97 | extern void tipc_netlink_stop(void); | 97 | void tipc_netlink_stop(void); |
98 | extern int tipc_socket_init(void); | 98 | int tipc_socket_init(void); |
99 | extern void tipc_socket_stop(void); | 99 | void tipc_socket_stop(void); |
100 | extern int tipc_sock_create_local(int type, struct socket **res); | 100 | int tipc_sock_create_local(int type, struct socket **res); |
101 | extern void tipc_sock_release_local(struct socket *sock); | 101 | void tipc_sock_release_local(struct socket *sock); |
102 | extern int tipc_sock_accept_local(struct socket *sock, | 102 | int tipc_sock_accept_local(struct socket *sock, struct socket **newsock, |
103 | struct socket **newsock, int flags); | 103 | int flags); |
104 | 104 | ||
105 | #ifdef CONFIG_SYSCTL | 105 | #ifdef CONFIG_SYSCTL |
106 | extern int tipc_register_sysctl(void); | 106 | int tipc_register_sysctl(void); |
107 | extern void tipc_unregister_sysctl(void); | 107 | void tipc_unregister_sysctl(void); |
108 | #else | 108 | #else |
109 | #define tipc_register_sysctl() 0 | 109 | #define tipc_register_sysctl() 0 |
110 | #define tipc_unregister_sysctl() | 110 | #define tipc_unregister_sysctl() |
@@ -201,6 +201,6 @@ static inline struct tipc_msg *buf_msg(struct sk_buff *skb) | |||
201 | return (struct tipc_msg *)skb->data; | 201 | return (struct tipc_msg *)skb->data; |
202 | } | 202 | } |
203 | 203 | ||
204 | extern struct sk_buff *tipc_buf_acquire(u32 size); | 204 | struct sk_buff *tipc_buf_acquire(u32 size); |
205 | 205 | ||
206 | #endif | 206 | #endif |