提交 54df3b96 编写于 作者: J Joe Perches 提交者: David S. Miller

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: NJoe Perches <joe@perches.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 c0f4502a
...@@ -160,38 +160,42 @@ extern int sysctl_rose_routing_control; ...@@ -160,38 +160,42 @@ extern int sysctl_rose_routing_control;
extern int sysctl_rose_link_fail_timeout; extern int sysctl_rose_link_fail_timeout;
extern int sysctl_rose_maximum_vcs; extern int sysctl_rose_maximum_vcs;
extern int sysctl_rose_window_size; extern int sysctl_rose_window_size;
extern int rosecmp(rose_address *, rose_address *);
extern int rosecmpm(rose_address *, rose_address *, unsigned short); int rosecmp(rose_address *, rose_address *);
extern char *rose2asc(char *buf, const rose_address *); int rosecmpm(rose_address *, rose_address *, unsigned short);
extern struct sock *rose_find_socket(unsigned int, struct rose_neigh *); char *rose2asc(char *buf, const rose_address *);
extern void rose_kill_by_neigh(struct rose_neigh *); struct sock *rose_find_socket(unsigned int, struct rose_neigh *);
extern unsigned int rose_new_lci(struct rose_neigh *); void rose_kill_by_neigh(struct rose_neigh *);
extern int rose_rx_call_request(struct sk_buff *, struct net_device *, struct rose_neigh *, unsigned int); unsigned int rose_new_lci(struct rose_neigh *);
extern void rose_destroy_socket(struct sock *); int rose_rx_call_request(struct sk_buff *, struct net_device *,
struct rose_neigh *, unsigned int);
void rose_destroy_socket(struct sock *);
/* rose_dev.c */ /* rose_dev.c */
extern void rose_setup(struct net_device *); void rose_setup(struct net_device *);
/* rose_in.c */ /* rose_in.c */
extern int rose_process_rx_frame(struct sock *, struct sk_buff *); int rose_process_rx_frame(struct sock *, struct sk_buff *);
/* rose_link.c */ /* rose_link.c */
extern void rose_start_ftimer(struct rose_neigh *); void rose_start_ftimer(struct rose_neigh *);
extern void rose_stop_ftimer(struct rose_neigh *); void rose_stop_ftimer(struct rose_neigh *);
extern void rose_stop_t0timer(struct rose_neigh *); void rose_stop_t0timer(struct rose_neigh *);
extern int rose_ftimer_running(struct rose_neigh *); int rose_ftimer_running(struct rose_neigh *);
extern void rose_link_rx_restart(struct sk_buff *, struct rose_neigh *, unsigned short); void rose_link_rx_restart(struct sk_buff *, struct rose_neigh *,
extern void rose_transmit_clear_request(struct rose_neigh *, unsigned int, unsigned char, unsigned char); unsigned short);
extern void rose_transmit_link(struct sk_buff *, struct rose_neigh *); void rose_transmit_clear_request(struct rose_neigh *, unsigned int,
unsigned char, unsigned char);
void rose_transmit_link(struct sk_buff *, struct rose_neigh *);
/* rose_loopback.c */ /* rose_loopback.c */
extern void rose_loopback_init(void); void rose_loopback_init(void);
extern void rose_loopback_clear(void); void rose_loopback_clear(void);
extern int rose_loopback_queue(struct sk_buff *, struct rose_neigh *); int rose_loopback_queue(struct sk_buff *, struct rose_neigh *);
/* rose_out.c */ /* rose_out.c */
extern void rose_kick(struct sock *); void rose_kick(struct sock *);
extern void rose_enquiry_response(struct sock *); void rose_enquiry_response(struct sock *);
/* rose_route.c */ /* rose_route.c */
extern struct rose_neigh *rose_loopback_neigh; extern struct rose_neigh *rose_loopback_neigh;
...@@ -199,43 +203,45 @@ extern const struct file_operations rose_neigh_fops; ...@@ -199,43 +203,45 @@ extern const struct file_operations rose_neigh_fops;
extern const struct file_operations rose_nodes_fops; extern const struct file_operations rose_nodes_fops;
extern const struct file_operations rose_routes_fops; extern const struct file_operations rose_routes_fops;
extern void rose_add_loopback_neigh(void); void rose_add_loopback_neigh(void);
extern int __must_check rose_add_loopback_node(rose_address *); int __must_check rose_add_loopback_node(rose_address *);
extern void rose_del_loopback_node(rose_address *); void rose_del_loopback_node(rose_address *);
extern void rose_rt_device_down(struct net_device *); void rose_rt_device_down(struct net_device *);
extern void rose_link_device_down(struct net_device *); void rose_link_device_down(struct net_device *);
extern struct net_device *rose_dev_first(void); struct net_device *rose_dev_first(void);
extern struct net_device *rose_dev_get(rose_address *); struct net_device *rose_dev_get(rose_address *);
extern struct rose_route *rose_route_free_lci(unsigned int, struct rose_neigh *); struct rose_route *rose_route_free_lci(unsigned int, struct rose_neigh *);
extern struct rose_neigh *rose_get_neigh(rose_address *, unsigned char *, unsigned char *, int); struct rose_neigh *rose_get_neigh(rose_address *, unsigned char *,
extern int rose_rt_ioctl(unsigned int, void __user *); unsigned char *, int);
extern void rose_link_failed(ax25_cb *, int); int rose_rt_ioctl(unsigned int, void __user *);
extern int rose_route_frame(struct sk_buff *, ax25_cb *); void rose_link_failed(ax25_cb *, int);
extern void rose_rt_free(void); int rose_route_frame(struct sk_buff *, ax25_cb *);
void rose_rt_free(void);
/* rose_subr.c */ /* rose_subr.c */
extern void rose_clear_queues(struct sock *); void rose_clear_queues(struct sock *);
extern void rose_frames_acked(struct sock *, unsigned short); void rose_frames_acked(struct sock *, unsigned short);
extern void rose_requeue_frames(struct sock *); void rose_requeue_frames(struct sock *);
extern int rose_validate_nr(struct sock *, unsigned short); int rose_validate_nr(struct sock *, unsigned short);
extern void rose_write_internal(struct sock *, int); void rose_write_internal(struct sock *, int);
extern int rose_decode(struct sk_buff *, int *, int *, int *, int *, int *); int rose_decode(struct sk_buff *, int *, int *, int *, int *, int *);
extern int rose_parse_facilities(unsigned char *, unsigned int, struct rose_facilities_struct *); int rose_parse_facilities(unsigned char *, unsigned int,
extern void rose_disconnect(struct sock *, int, int, int); struct rose_facilities_struct *);
void rose_disconnect(struct sock *, int, int, int);
/* rose_timer.c */ /* rose_timer.c */
extern void rose_start_heartbeat(struct sock *); void rose_start_heartbeat(struct sock *);
extern void rose_start_t1timer(struct sock *); void rose_start_t1timer(struct sock *);
extern void rose_start_t2timer(struct sock *); void rose_start_t2timer(struct sock *);
extern void rose_start_t3timer(struct sock *); void rose_start_t3timer(struct sock *);
extern void rose_start_hbtimer(struct sock *); void rose_start_hbtimer(struct sock *);
extern void rose_start_idletimer(struct sock *); void rose_start_idletimer(struct sock *);
extern void rose_stop_heartbeat(struct sock *); void rose_stop_heartbeat(struct sock *);
extern void rose_stop_timer(struct sock *); void rose_stop_timer(struct sock *);
extern void rose_stop_idletimer(struct sock *); void rose_stop_idletimer(struct sock *);
/* sysctl_net_rose.c */ /* sysctl_net_rose.c */
extern void rose_register_sysctl(void); void rose_register_sysctl(void);
extern void rose_unregister_sysctl(void); void rose_unregister_sysctl(void);
#endif #endif
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册