aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/rose.h
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2013-09-22 13:32:21 -0400
committerDavid S. Miller <davem@davemloft.net>2013-09-23 01:51:08 -0400
commit54df3b961db19e3eb6ccbac0ca469c56b1b58689 (patch)
tree30dd0571498dc6e94c67e518c77207989eaf78df /include/net/rose.h
parentc0f4502a8700832bb3a917fdcfe080f5ccf1c617 (diff)
rose.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/rose.h')
-rw-r--r--include/net/rose.h114
1 files changed, 60 insertions, 54 deletions
diff --git a/include/net/rose.h b/include/net/rose.h
index 555dd198aab7..50811fe2c585 100644
--- a/include/net/rose.h
+++ b/include/net/rose.h
@@ -160,38 +160,42 @@ extern int sysctl_rose_routing_control;
160extern int sysctl_rose_link_fail_timeout; 160extern int sysctl_rose_link_fail_timeout;
161extern int sysctl_rose_maximum_vcs; 161extern int sysctl_rose_maximum_vcs;
162extern int sysctl_rose_window_size; 162extern int sysctl_rose_window_size;
163extern int rosecmp(rose_address *, rose_address *); 163
164extern int rosecmpm(rose_address *, rose_address *, unsigned short); 164int rosecmp(rose_address *, rose_address *);
165extern char *rose2asc(char *buf, const rose_address *); 165int rosecmpm(rose_address *, rose_address *, unsigned short);
166extern struct sock *rose_find_socket(unsigned int, struct rose_neigh *); 166char *rose2asc(char *buf, const rose_address *);
167extern void rose_kill_by_neigh(struct rose_neigh *); 167struct sock *rose_find_socket(unsigned int, struct rose_neigh *);
168extern unsigned int rose_new_lci(struct rose_neigh *); 168void rose_kill_by_neigh(struct rose_neigh *);
169extern int rose_rx_call_request(struct sk_buff *, struct net_device *, struct rose_neigh *, unsigned int); 169unsigned int rose_new_lci(struct rose_neigh *);
170extern void rose_destroy_socket(struct sock *); 170int rose_rx_call_request(struct sk_buff *, struct net_device *,
171 struct rose_neigh *, unsigned int);
172void rose_destroy_socket(struct sock *);
171 173
172/* rose_dev.c */ 174/* rose_dev.c */
173extern void rose_setup(struct net_device *); 175void rose_setup(struct net_device *);
174 176
175/* rose_in.c */ 177/* rose_in.c */
176extern int rose_process_rx_frame(struct sock *, struct sk_buff *); 178int rose_process_rx_frame(struct sock *, struct sk_buff *);
177 179
178/* rose_link.c */ 180/* rose_link.c */
179extern void rose_start_ftimer(struct rose_neigh *); 181void rose_start_ftimer(struct rose_neigh *);
180extern void rose_stop_ftimer(struct rose_neigh *); 182void rose_stop_ftimer(struct rose_neigh *);
181extern void rose_stop_t0timer(struct rose_neigh *); 183void rose_stop_t0timer(struct rose_neigh *);
182extern int rose_ftimer_running(struct rose_neigh *); 184int rose_ftimer_running(struct rose_neigh *);
183extern void rose_link_rx_restart(struct sk_buff *, struct rose_neigh *, unsigned short); 185void rose_link_rx_restart(struct sk_buff *, struct rose_neigh *,
184extern void rose_transmit_clear_request(struct rose_neigh *, unsigned int, unsigned char, unsigned char); 186 unsigned short);
185extern void rose_transmit_link(struct sk_buff *, struct rose_neigh *); 187void rose_transmit_clear_request(struct rose_neigh *, unsigned int,
188 unsigned char, unsigned char);
189void rose_transmit_link(struct sk_buff *, struct rose_neigh *);
186 190
187/* rose_loopback.c */ 191/* rose_loopback.c */
188extern void rose_loopback_init(void); 192void rose_loopback_init(void);
189extern void rose_loopback_clear(void); 193void rose_loopback_clear(void);
190extern int rose_loopback_queue(struct sk_buff *, struct rose_neigh *); 194int rose_loopback_queue(struct sk_buff *, struct rose_neigh *);
191 195
192/* rose_out.c */ 196/* rose_out.c */
193extern void rose_kick(struct sock *); 197void rose_kick(struct sock *);
194extern void rose_enquiry_response(struct sock *); 198void rose_enquiry_response(struct sock *);
195 199
196/* rose_route.c */ 200/* rose_route.c */
197extern struct rose_neigh *rose_loopback_neigh; 201extern struct rose_neigh *rose_loopback_neigh;
@@ -199,43 +203,45 @@ extern const struct file_operations rose_neigh_fops;
199extern const struct file_operations rose_nodes_fops; 203extern const struct file_operations rose_nodes_fops;
200extern const struct file_operations rose_routes_fops; 204extern const struct file_operations rose_routes_fops;
201 205
202extern void rose_add_loopback_neigh(void); 206void rose_add_loopback_neigh(void);
203extern int __must_check rose_add_loopback_node(rose_address *); 207int __must_check rose_add_loopback_node(rose_address *);
204extern void rose_del_loopback_node(rose_address *); 208void rose_del_loopback_node(rose_address *);
205extern void rose_rt_device_down(struct net_device *); 209void rose_rt_device_down(struct net_device *);
206extern void rose_link_device_down(struct net_device *); 210void rose_link_device_down(struct net_device *);
207extern struct net_device *rose_dev_first(void); 211struct net_device *rose_dev_first(void);
208extern struct net_device *rose_dev_get(rose_address *); 212struct net_device *rose_dev_get(rose_address *);
209extern struct rose_route *rose_route_free_lci(unsigned int, struct rose_neigh *); 213struct rose_route *rose_route_free_lci(unsigned int, struct rose_neigh *);
210extern struct rose_neigh *rose_get_neigh(rose_address *, unsigned char *, unsigned char *, int); 214struct rose_neigh *rose_get_neigh(rose_address *, unsigned char *,
211extern int rose_rt_ioctl(unsigned int, void __user *); 215 unsigned char *, int);
212extern void rose_link_failed(ax25_cb *, int); 216int rose_rt_ioctl(unsigned int, void __user *);
213extern int rose_route_frame(struct sk_buff *, ax25_cb *); 217void rose_link_failed(ax25_cb *, int);
214extern void rose_rt_free(void); 218int rose_route_frame(struct sk_buff *, ax25_cb *);
219void rose_rt_free(void);
215 220
216/* rose_subr.c */ 221/* rose_subr.c */
217extern void rose_clear_queues(struct sock *); 222void rose_clear_queues(struct sock *);
218extern void rose_frames_acked(struct sock *, unsigned short); 223void rose_frames_acked(struct sock *, unsigned short);
219extern void rose_requeue_frames(struct sock *); 224void rose_requeue_frames(struct sock *);
220extern int rose_validate_nr(struct sock *, unsigned short); 225int rose_validate_nr(struct sock *, unsigned short);
221extern void rose_write_internal(struct sock *, int); 226void rose_write_internal(struct sock *, int);
222extern int rose_decode(struct sk_buff *, int *, int *, int *, int *, int *); 227int rose_decode(struct sk_buff *, int *, int *, int *, int *, int *);
223extern int rose_parse_facilities(unsigned char *, unsigned int, struct rose_facilities_struct *); 228int rose_parse_facilities(unsigned char *, unsigned int,
224extern void rose_disconnect(struct sock *, int, int, int); 229 struct rose_facilities_struct *);
230void rose_disconnect(struct sock *, int, int, int);
225 231
226/* rose_timer.c */ 232/* rose_timer.c */
227extern void rose_start_heartbeat(struct sock *); 233void rose_start_heartbeat(struct sock *);
228extern void rose_start_t1timer(struct sock *); 234void rose_start_t1timer(struct sock *);
229extern void rose_start_t2timer(struct sock *); 235void rose_start_t2timer(struct sock *);
230extern void rose_start_t3timer(struct sock *); 236void rose_start_t3timer(struct sock *);
231extern void rose_start_hbtimer(struct sock *); 237void rose_start_hbtimer(struct sock *);
232extern void rose_start_idletimer(struct sock *); 238void rose_start_idletimer(struct sock *);
233extern void rose_stop_heartbeat(struct sock *); 239void rose_stop_heartbeat(struct sock *);
234extern void rose_stop_timer(struct sock *); 240void rose_stop_timer(struct sock *);
235extern void rose_stop_idletimer(struct sock *); 241void rose_stop_idletimer(struct sock *);
236 242
237/* sysctl_net_rose.c */ 243/* sysctl_net_rose.c */
238extern void rose_register_sysctl(void); 244void rose_register_sysctl(void);
239extern void rose_unregister_sysctl(void); 245void rose_unregister_sysctl(void);
240 246
241#endif 247#endif