Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Joe Perches and committed by
David S. Miller
96496127 4f69053b

+44 -45
+44 -45
include/net/netrom.h
··· 183 183 extern int sysctl_netrom_link_fails_count; 184 184 extern int sysctl_netrom_reset_circuit; 185 185 186 - extern int nr_rx_frame(struct sk_buff *, struct net_device *); 187 - extern void nr_destroy_socket(struct sock *); 186 + int nr_rx_frame(struct sk_buff *, struct net_device *); 187 + void nr_destroy_socket(struct sock *); 188 188 189 189 /* nr_dev.c */ 190 - extern int nr_rx_ip(struct sk_buff *, struct net_device *); 191 - extern void nr_setup(struct net_device *); 190 + int nr_rx_ip(struct sk_buff *, struct net_device *); 191 + void nr_setup(struct net_device *); 192 192 193 193 /* nr_in.c */ 194 - extern int nr_process_rx_frame(struct sock *, struct sk_buff *); 194 + int nr_process_rx_frame(struct sock *, struct sk_buff *); 195 195 196 196 /* nr_loopback.c */ 197 - extern void nr_loopback_init(void); 198 - extern void nr_loopback_clear(void); 199 - extern int nr_loopback_queue(struct sk_buff *); 197 + void nr_loopback_init(void); 198 + void nr_loopback_clear(void); 199 + int nr_loopback_queue(struct sk_buff *); 200 200 201 201 /* nr_out.c */ 202 - extern void nr_output(struct sock *, struct sk_buff *); 203 - extern void nr_send_nak_frame(struct sock *); 204 - extern void nr_kick(struct sock *); 205 - extern void nr_transmit_buffer(struct sock *, struct sk_buff *); 206 - extern void nr_establish_data_link(struct sock *); 207 - extern void nr_enquiry_response(struct sock *); 208 - extern void nr_check_iframes_acked(struct sock *, unsigned short); 202 + void nr_output(struct sock *, struct sk_buff *); 203 + void nr_send_nak_frame(struct sock *); 204 + void nr_kick(struct sock *); 205 + void nr_transmit_buffer(struct sock *, struct sk_buff *); 206 + void nr_establish_data_link(struct sock *); 207 + void nr_enquiry_response(struct sock *); 208 + void nr_check_iframes_acked(struct sock *, unsigned short); 209 209 210 210 /* nr_route.c */ 211 - extern void nr_rt_device_down(struct net_device *); 212 - extern struct net_device *nr_dev_first(void); 213 - extern struct net_device *nr_dev_get(ax25_address *); 214 - extern int nr_rt_ioctl(unsigned int, void __user *); 215 - extern void nr_link_failed(ax25_cb *, int); 216 - extern int nr_route_frame(struct sk_buff *, ax25_cb *); 211 + void nr_rt_device_down(struct net_device *); 212 + struct net_device *nr_dev_first(void); 213 + struct net_device *nr_dev_get(ax25_address *); 214 + int nr_rt_ioctl(unsigned int, void __user *); 215 + void nr_link_failed(ax25_cb *, int); 216 + int nr_route_frame(struct sk_buff *, ax25_cb *); 217 217 extern const struct file_operations nr_nodes_fops; 218 218 extern const struct file_operations nr_neigh_fops; 219 - extern void nr_rt_free(void); 219 + void nr_rt_free(void); 220 220 221 221 /* nr_subr.c */ 222 - extern void nr_clear_queues(struct sock *); 223 - extern void nr_frames_acked(struct sock *, unsigned short); 224 - extern void nr_requeue_frames(struct sock *); 225 - extern int nr_validate_nr(struct sock *, unsigned short); 226 - extern int nr_in_rx_window(struct sock *, unsigned short); 227 - extern void nr_write_internal(struct sock *, int); 222 + void nr_clear_queues(struct sock *); 223 + void nr_frames_acked(struct sock *, unsigned short); 224 + void nr_requeue_frames(struct sock *); 225 + int nr_validate_nr(struct sock *, unsigned short); 226 + int nr_in_rx_window(struct sock *, unsigned short); 227 + void nr_write_internal(struct sock *, int); 228 228 229 - extern void __nr_transmit_reply(struct sk_buff *skb, int mine, 230 - unsigned char cmdflags); 229 + void __nr_transmit_reply(struct sk_buff *skb, int mine, unsigned char cmdflags); 231 230 232 231 /* 233 232 * This routine is called when a Connect Acknowledge with the Choke Flag ··· 246 247 __nr_transmit_reply((skb), (mine), NR_RESET); \ 247 248 } while (0) 248 249 249 - extern void nr_disconnect(struct sock *, int); 250 + void nr_disconnect(struct sock *, int); 250 251 251 252 /* nr_timer.c */ 252 - extern void nr_init_timers(struct sock *sk); 253 - extern void nr_start_heartbeat(struct sock *); 254 - extern void nr_start_t1timer(struct sock *); 255 - extern void nr_start_t2timer(struct sock *); 256 - extern void nr_start_t4timer(struct sock *); 257 - extern void nr_start_idletimer(struct sock *); 258 - extern void nr_stop_heartbeat(struct sock *); 259 - extern void nr_stop_t1timer(struct sock *); 260 - extern void nr_stop_t2timer(struct sock *); 261 - extern void nr_stop_t4timer(struct sock *); 262 - extern void nr_stop_idletimer(struct sock *); 263 - extern int nr_t1timer_running(struct sock *); 253 + void nr_init_timers(struct sock *sk); 254 + void nr_start_heartbeat(struct sock *); 255 + void nr_start_t1timer(struct sock *); 256 + void nr_start_t2timer(struct sock *); 257 + void nr_start_t4timer(struct sock *); 258 + void nr_start_idletimer(struct sock *); 259 + void nr_stop_heartbeat(struct sock *); 260 + void nr_stop_t1timer(struct sock *); 261 + void nr_stop_t2timer(struct sock *); 262 + void nr_stop_t4timer(struct sock *); 263 + void nr_stop_idletimer(struct sock *); 264 + int nr_t1timer_running(struct sock *); 264 265 265 266 /* sysctl_net_netrom.c */ 266 - extern void nr_register_sysctl(void); 267 - extern void nr_unregister_sysctl(void); 267 + void nr_register_sysctl(void); 268 + void nr_unregister_sysctl(void); 268 269 269 270 #endif