aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/netrom.h
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2013-09-21 13:22:51 -0400
committerDavid S. Miller <davem@davemloft.net>2013-09-21 14:01:39 -0400
commit96496127fe2f37c3670facfdbcc5cc51460c439c (patch)
tree3e7115f66ef568625755d27270f5d17efd0f3732 /include/net/netrom.h
parent4f69053b72c542faec2096ab454bba729a423efe (diff)
netrom.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/netrom.h')
-rw-r--r--include/net/netrom.h89
1 files changed, 44 insertions, 45 deletions
diff --git a/include/net/netrom.h b/include/net/netrom.h
index 121dcf854db5..110350aca3df 100644
--- a/include/net/netrom.h
+++ b/include/net/netrom.h
@@ -183,51 +183,50 @@ extern int sysctl_netrom_routing_control;
183extern int sysctl_netrom_link_fails_count; 183extern int sysctl_netrom_link_fails_count;
184extern int sysctl_netrom_reset_circuit; 184extern int sysctl_netrom_reset_circuit;
185 185
186extern int nr_rx_frame(struct sk_buff *, struct net_device *); 186int nr_rx_frame(struct sk_buff *, struct net_device *);
187extern void nr_destroy_socket(struct sock *); 187void nr_destroy_socket(struct sock *);
188 188
189/* nr_dev.c */ 189/* nr_dev.c */
190extern int nr_rx_ip(struct sk_buff *, struct net_device *); 190int nr_rx_ip(struct sk_buff *, struct net_device *);
191extern void nr_setup(struct net_device *); 191void nr_setup(struct net_device *);
192 192
193/* nr_in.c */ 193/* nr_in.c */
194extern int nr_process_rx_frame(struct sock *, struct sk_buff *); 194int nr_process_rx_frame(struct sock *, struct sk_buff *);
195 195
196/* nr_loopback.c */ 196/* nr_loopback.c */
197extern void nr_loopback_init(void); 197void nr_loopback_init(void);
198extern void nr_loopback_clear(void); 198void nr_loopback_clear(void);
199extern int nr_loopback_queue(struct sk_buff *); 199int nr_loopback_queue(struct sk_buff *);
200 200
201/* nr_out.c */ 201/* nr_out.c */
202extern void nr_output(struct sock *, struct sk_buff *); 202void nr_output(struct sock *, struct sk_buff *);
203extern void nr_send_nak_frame(struct sock *); 203void nr_send_nak_frame(struct sock *);
204extern void nr_kick(struct sock *); 204void nr_kick(struct sock *);
205extern void nr_transmit_buffer(struct sock *, struct sk_buff *); 205void nr_transmit_buffer(struct sock *, struct sk_buff *);
206extern void nr_establish_data_link(struct sock *); 206void nr_establish_data_link(struct sock *);
207extern void nr_enquiry_response(struct sock *); 207void nr_enquiry_response(struct sock *);
208extern void nr_check_iframes_acked(struct sock *, unsigned short); 208void nr_check_iframes_acked(struct sock *, unsigned short);
209 209
210/* nr_route.c */ 210/* nr_route.c */
211extern void nr_rt_device_down(struct net_device *); 211void nr_rt_device_down(struct net_device *);
212extern struct net_device *nr_dev_first(void); 212struct net_device *nr_dev_first(void);
213extern struct net_device *nr_dev_get(ax25_address *); 213struct net_device *nr_dev_get(ax25_address *);
214extern int nr_rt_ioctl(unsigned int, void __user *); 214int nr_rt_ioctl(unsigned int, void __user *);
215extern void nr_link_failed(ax25_cb *, int); 215void nr_link_failed(ax25_cb *, int);
216extern int nr_route_frame(struct sk_buff *, ax25_cb *); 216int nr_route_frame(struct sk_buff *, ax25_cb *);
217extern const struct file_operations nr_nodes_fops; 217extern const struct file_operations nr_nodes_fops;
218extern const struct file_operations nr_neigh_fops; 218extern const struct file_operations nr_neigh_fops;
219extern void nr_rt_free(void); 219void nr_rt_free(void);
220 220
221/* nr_subr.c */ 221/* nr_subr.c */
222extern void nr_clear_queues(struct sock *); 222void nr_clear_queues(struct sock *);
223extern void nr_frames_acked(struct sock *, unsigned short); 223void nr_frames_acked(struct sock *, unsigned short);
224extern void nr_requeue_frames(struct sock *); 224void nr_requeue_frames(struct sock *);
225extern int nr_validate_nr(struct sock *, unsigned short); 225int nr_validate_nr(struct sock *, unsigned short);
226extern int nr_in_rx_window(struct sock *, unsigned short); 226int nr_in_rx_window(struct sock *, unsigned short);
227extern void nr_write_internal(struct sock *, int); 227void nr_write_internal(struct sock *, int);
228 228
229extern void __nr_transmit_reply(struct sk_buff *skb, int mine, 229void __nr_transmit_reply(struct sk_buff *skb, int mine, unsigned char cmdflags);
230 unsigned char cmdflags);
231 230
232/* 231/*
233 * This routine is called when a Connect Acknowledge with the Choke Flag 232 * This routine is called when a Connect Acknowledge with the Choke Flag
@@ -247,24 +246,24 @@ do { \
247 __nr_transmit_reply((skb), (mine), NR_RESET); \ 246 __nr_transmit_reply((skb), (mine), NR_RESET); \
248} while (0) 247} while (0)
249 248
250extern void nr_disconnect(struct sock *, int); 249void nr_disconnect(struct sock *, int);
251 250
252/* nr_timer.c */ 251/* nr_timer.c */
253extern void nr_init_timers(struct sock *sk); 252void nr_init_timers(struct sock *sk);
254extern void nr_start_heartbeat(struct sock *); 253void nr_start_heartbeat(struct sock *);
255extern void nr_start_t1timer(struct sock *); 254void nr_start_t1timer(struct sock *);
256extern void nr_start_t2timer(struct sock *); 255void nr_start_t2timer(struct sock *);
257extern void nr_start_t4timer(struct sock *); 256void nr_start_t4timer(struct sock *);
258extern void nr_start_idletimer(struct sock *); 257void nr_start_idletimer(struct sock *);
259extern void nr_stop_heartbeat(struct sock *); 258void nr_stop_heartbeat(struct sock *);
260extern void nr_stop_t1timer(struct sock *); 259void nr_stop_t1timer(struct sock *);
261extern void nr_stop_t2timer(struct sock *); 260void nr_stop_t2timer(struct sock *);
262extern void nr_stop_t4timer(struct sock *); 261void nr_stop_t4timer(struct sock *);
263extern void nr_stop_idletimer(struct sock *); 262void nr_stop_idletimer(struct sock *);
264extern int nr_t1timer_running(struct sock *); 263int nr_t1timer_running(struct sock *);
265 264
266/* sysctl_net_netrom.c */ 265/* sysctl_net_netrom.c */
267extern void nr_register_sysctl(void); 266void nr_register_sysctl(void);
268extern void nr_unregister_sysctl(void); 267void nr_unregister_sysctl(void);
269 268
270#endif 269#endif