diff options
author | Joe Perches <joe@perches.com> | 2013-10-18 16:48:22 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-10-19 19:12:11 -0400 |
commit | 348662a1429f95ed2d488c939c324ec152638742 (patch) | |
tree | e94d2acc47df1ad37e811f71c058fdb0c89c970f /net/bridge/br_private.h | |
parent | 47d27aad44169372f358cda88a223883f6760fa5 (diff) |
net: 8021q/bluetooth/bridge/can/ceph: 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/bridge/br_private.h')
-rw-r--r-- | net/bridge/br_private.h | 299 |
1 files changed, 138 insertions, 161 deletions
diff --git a/net/bridge/br_private.h b/net/bridge/br_private.h index efb57d911569..767c4dad8504 100644 --- a/net/bridge/br_private.h +++ b/net/bridge/br_private.h | |||
@@ -344,10 +344,9 @@ static inline int br_is_root_bridge(const struct net_bridge *br) | |||
344 | } | 344 | } |
345 | 345 | ||
346 | /* br_device.c */ | 346 | /* br_device.c */ |
347 | extern void br_dev_setup(struct net_device *dev); | 347 | void br_dev_setup(struct net_device *dev); |
348 | extern void br_dev_delete(struct net_device *dev, struct list_head *list); | 348 | void br_dev_delete(struct net_device *dev, struct list_head *list); |
349 | extern netdev_tx_t br_dev_xmit(struct sk_buff *skb, | 349 | netdev_tx_t br_dev_xmit(struct sk_buff *skb, struct net_device *dev); |
350 | struct net_device *dev); | ||
351 | #ifdef CONFIG_NET_POLL_CONTROLLER | 350 | #ifdef CONFIG_NET_POLL_CONTROLLER |
352 | static inline void br_netpoll_send_skb(const struct net_bridge_port *p, | 351 | static inline void br_netpoll_send_skb(const struct net_bridge_port *p, |
353 | struct sk_buff *skb) | 352 | struct sk_buff *skb) |
@@ -358,8 +357,8 @@ static inline void br_netpoll_send_skb(const struct net_bridge_port *p, | |||
358 | netpoll_send_skb(np, skb); | 357 | netpoll_send_skb(np, skb); |
359 | } | 358 | } |
360 | 359 | ||
361 | extern int br_netpoll_enable(struct net_bridge_port *p, gfp_t gfp); | 360 | int br_netpoll_enable(struct net_bridge_port *p, gfp_t gfp); |
362 | extern void br_netpoll_disable(struct net_bridge_port *p); | 361 | void br_netpoll_disable(struct net_bridge_port *p); |
363 | #else | 362 | #else |
364 | static inline void br_netpoll_send_skb(const struct net_bridge_port *p, | 363 | static inline void br_netpoll_send_skb(const struct net_bridge_port *p, |
365 | struct sk_buff *skb) | 364 | struct sk_buff *skb) |
@@ -377,116 +376,99 @@ static inline void br_netpoll_disable(struct net_bridge_port *p) | |||
377 | #endif | 376 | #endif |
378 | 377 | ||
379 | /* br_fdb.c */ | 378 | /* br_fdb.c */ |
380 | extern int br_fdb_init(void); | 379 | int br_fdb_init(void); |
381 | extern void br_fdb_fini(void); | 380 | void br_fdb_fini(void); |
382 | extern void br_fdb_flush(struct net_bridge *br); | 381 | void br_fdb_flush(struct net_bridge *br); |
383 | extern void br_fdb_changeaddr(struct net_bridge_port *p, | 382 | void br_fdb_changeaddr(struct net_bridge_port *p, const unsigned char *newaddr); |
384 | const unsigned char *newaddr); | 383 | void br_fdb_change_mac_address(struct net_bridge *br, const u8 *newaddr); |
385 | extern void br_fdb_change_mac_address(struct net_bridge *br, const u8 *newaddr); | 384 | void br_fdb_cleanup(unsigned long arg); |
386 | extern void br_fdb_cleanup(unsigned long arg); | 385 | void br_fdb_delete_by_port(struct net_bridge *br, |
387 | extern void br_fdb_delete_by_port(struct net_bridge *br, | 386 | const struct net_bridge_port *p, int do_all); |
388 | const struct net_bridge_port *p, int do_all); | 387 | struct net_bridge_fdb_entry *__br_fdb_get(struct net_bridge *br, |
389 | extern struct net_bridge_fdb_entry *__br_fdb_get(struct net_bridge *br, | 388 | const unsigned char *addr, __u16 vid); |
390 | const unsigned char *addr, | 389 | int br_fdb_test_addr(struct net_device *dev, unsigned char *addr); |
391 | __u16 vid); | 390 | int br_fdb_fillbuf(struct net_bridge *br, void *buf, unsigned long count, |
392 | extern int br_fdb_test_addr(struct net_device *dev, unsigned char *addr); | 391 | unsigned long off); |
393 | extern int br_fdb_fillbuf(struct net_bridge *br, void *buf, | 392 | int br_fdb_insert(struct net_bridge *br, struct net_bridge_port *source, |
394 | unsigned long count, unsigned long off); | 393 | const unsigned char *addr, u16 vid); |
395 | extern int br_fdb_insert(struct net_bridge *br, | 394 | void br_fdb_update(struct net_bridge *br, struct net_bridge_port *source, |
396 | struct net_bridge_port *source, | 395 | const unsigned char *addr, u16 vid); |
397 | const unsigned char *addr, | 396 | int fdb_delete_by_addr(struct net_bridge *br, const u8 *addr, u16 vid); |
398 | u16 vid); | 397 | |
399 | extern void br_fdb_update(struct net_bridge *br, | 398 | int br_fdb_delete(struct ndmsg *ndm, struct nlattr *tb[], |
400 | struct net_bridge_port *source, | 399 | struct net_device *dev, const unsigned char *addr); |
401 | const unsigned char *addr, | 400 | int br_fdb_add(struct ndmsg *nlh, struct nlattr *tb[], struct net_device *dev, |
402 | u16 vid); | 401 | const unsigned char *addr, u16 nlh_flags); |
403 | extern int fdb_delete_by_addr(struct net_bridge *br, const u8 *addr, u16 vid); | 402 | int br_fdb_dump(struct sk_buff *skb, struct netlink_callback *cb, |
404 | 403 | struct net_device *dev, int idx); | |
405 | extern int br_fdb_delete(struct ndmsg *ndm, struct nlattr *tb[], | ||
406 | struct net_device *dev, | ||
407 | const unsigned char *addr); | ||
408 | extern int br_fdb_add(struct ndmsg *nlh, struct nlattr *tb[], | ||
409 | struct net_device *dev, | ||
410 | const unsigned char *addr, | ||
411 | u16 nlh_flags); | ||
412 | extern int br_fdb_dump(struct sk_buff *skb, | ||
413 | struct netlink_callback *cb, | ||
414 | struct net_device *dev, | ||
415 | int idx); | ||
416 | 404 | ||
417 | /* br_forward.c */ | 405 | /* br_forward.c */ |
418 | extern void br_deliver(const struct net_bridge_port *to, | 406 | void br_deliver(const struct net_bridge_port *to, struct sk_buff *skb); |
419 | struct sk_buff *skb); | 407 | int br_dev_queue_push_xmit(struct sk_buff *skb); |
420 | extern int br_dev_queue_push_xmit(struct sk_buff *skb); | 408 | void br_forward(const struct net_bridge_port *to, |
421 | extern void br_forward(const struct net_bridge_port *to, | ||
422 | struct sk_buff *skb, struct sk_buff *skb0); | 409 | struct sk_buff *skb, struct sk_buff *skb0); |
423 | extern int br_forward_finish(struct sk_buff *skb); | 410 | int br_forward_finish(struct sk_buff *skb); |
424 | extern void br_flood_deliver(struct net_bridge *br, struct sk_buff *skb, | 411 | void br_flood_deliver(struct net_bridge *br, struct sk_buff *skb, bool unicast); |
425 | bool unicast); | 412 | void br_flood_forward(struct net_bridge *br, struct sk_buff *skb, |
426 | extern void br_flood_forward(struct net_bridge *br, struct sk_buff *skb, | 413 | struct sk_buff *skb2, bool unicast); |
427 | struct sk_buff *skb2, bool unicast); | ||
428 | 414 | ||
429 | /* br_if.c */ | 415 | /* br_if.c */ |
430 | extern void br_port_carrier_check(struct net_bridge_port *p); | 416 | void br_port_carrier_check(struct net_bridge_port *p); |
431 | extern int br_add_bridge(struct net *net, const char *name); | 417 | int br_add_bridge(struct net *net, const char *name); |
432 | extern int br_del_bridge(struct net *net, const char *name); | 418 | int br_del_bridge(struct net *net, const char *name); |
433 | extern void br_net_exit(struct net *net); | 419 | void br_net_exit(struct net *net); |
434 | extern int br_add_if(struct net_bridge *br, | 420 | int br_add_if(struct net_bridge *br, struct net_device *dev); |
435 | struct net_device *dev); | 421 | int br_del_if(struct net_bridge *br, struct net_device *dev); |
436 | extern int br_del_if(struct net_bridge *br, | 422 | int br_min_mtu(const struct net_bridge *br); |
437 | struct net_device *dev); | 423 | netdev_features_t br_features_recompute(struct net_bridge *br, |
438 | extern int br_min_mtu(const struct net_bridge *br); | 424 | netdev_features_t features); |
439 | extern netdev_features_t br_features_recompute(struct net_bridge *br, | ||
440 | netdev_features_t features); | ||
441 | 425 | ||
442 | /* br_input.c */ | 426 | /* br_input.c */ |
443 | extern int br_handle_frame_finish(struct sk_buff *skb); | 427 | int br_handle_frame_finish(struct sk_buff *skb); |
444 | extern rx_handler_result_t br_handle_frame(struct sk_buff **pskb); | 428 | rx_handler_result_t br_handle_frame(struct sk_buff **pskb); |
445 | 429 | ||
446 | /* br_ioctl.c */ | 430 | /* br_ioctl.c */ |
447 | extern int br_dev_ioctl(struct net_device *dev, struct ifreq *rq, int cmd); | 431 | int br_dev_ioctl(struct net_device *dev, struct ifreq *rq, int cmd); |
448 | extern int br_ioctl_deviceless_stub(struct net *net, unsigned int cmd, void __user *arg); | 432 | int br_ioctl_deviceless_stub(struct net *net, unsigned int cmd, |
433 | void __user *arg); | ||
449 | 434 | ||
450 | /* br_multicast.c */ | 435 | /* br_multicast.c */ |
451 | #ifdef CONFIG_BRIDGE_IGMP_SNOOPING | 436 | #ifdef CONFIG_BRIDGE_IGMP_SNOOPING |
452 | extern unsigned int br_mdb_rehash_seq; | 437 | extern unsigned int br_mdb_rehash_seq; |
453 | extern int br_multicast_rcv(struct net_bridge *br, | 438 | int br_multicast_rcv(struct net_bridge *br, struct net_bridge_port *port, |
454 | struct net_bridge_port *port, | 439 | struct sk_buff *skb); |
455 | struct sk_buff *skb); | 440 | struct net_bridge_mdb_entry *br_mdb_get(struct net_bridge *br, |
456 | extern struct net_bridge_mdb_entry *br_mdb_get(struct net_bridge *br, | 441 | struct sk_buff *skb, u16 vid); |
457 | struct sk_buff *skb, u16 vid); | 442 | void br_multicast_add_port(struct net_bridge_port *port); |
458 | extern void br_multicast_add_port(struct net_bridge_port *port); | 443 | void br_multicast_del_port(struct net_bridge_port *port); |
459 | extern void br_multicast_del_port(struct net_bridge_port *port); | 444 | void br_multicast_enable_port(struct net_bridge_port *port); |
460 | extern void br_multicast_enable_port(struct net_bridge_port *port); | 445 | void br_multicast_disable_port(struct net_bridge_port *port); |
461 | extern void br_multicast_disable_port(struct net_bridge_port *port); | 446 | void br_multicast_init(struct net_bridge *br); |
462 | extern void br_multicast_init(struct net_bridge *br); | 447 | void br_multicast_open(struct net_bridge *br); |
463 | extern void br_multicast_open(struct net_bridge *br); | 448 | void br_multicast_stop(struct net_bridge *br); |
464 | extern void br_multicast_stop(struct net_bridge *br); | 449 | void br_multicast_deliver(struct net_bridge_mdb_entry *mdst, |
465 | extern void br_multicast_deliver(struct net_bridge_mdb_entry *mdst, | 450 | struct sk_buff *skb); |
466 | struct sk_buff *skb); | 451 | void br_multicast_forward(struct net_bridge_mdb_entry *mdst, |
467 | extern void br_multicast_forward(struct net_bridge_mdb_entry *mdst, | 452 | struct sk_buff *skb, struct sk_buff *skb2); |
468 | struct sk_buff *skb, struct sk_buff *skb2); | 453 | int br_multicast_set_router(struct net_bridge *br, unsigned long val); |
469 | extern int br_multicast_set_router(struct net_bridge *br, unsigned long val); | 454 | int br_multicast_set_port_router(struct net_bridge_port *p, unsigned long val); |
470 | extern int br_multicast_set_port_router(struct net_bridge_port *p, | 455 | int br_multicast_toggle(struct net_bridge *br, unsigned long val); |
471 | unsigned long val); | 456 | int br_multicast_set_querier(struct net_bridge *br, unsigned long val); |
472 | extern int br_multicast_toggle(struct net_bridge *br, unsigned long val); | 457 | int br_multicast_set_hash_max(struct net_bridge *br, unsigned long val); |
473 | extern int br_multicast_set_querier(struct net_bridge *br, unsigned long val); | 458 | struct net_bridge_mdb_entry * |
474 | extern int br_multicast_set_hash_max(struct net_bridge *br, unsigned long val); | 459 | br_mdb_ip_get(struct net_bridge_mdb_htable *mdb, struct br_ip *dst); |
475 | extern struct net_bridge_mdb_entry *br_mdb_ip_get( | 460 | struct net_bridge_mdb_entry * |
476 | struct net_bridge_mdb_htable *mdb, | 461 | br_multicast_new_group(struct net_bridge *br, struct net_bridge_port *port, |
477 | struct br_ip *dst); | 462 | struct br_ip *group); |
478 | extern struct net_bridge_mdb_entry *br_multicast_new_group(struct net_bridge *br, | 463 | void br_multicast_free_pg(struct rcu_head *head); |
479 | struct net_bridge_port *port, struct br_ip *group); | 464 | struct net_bridge_port_group * |
480 | extern void br_multicast_free_pg(struct rcu_head *head); | 465 | br_multicast_new_port_group(struct net_bridge_port *port, struct br_ip *group, |
481 | extern struct net_bridge_port_group *br_multicast_new_port_group( | 466 | struct net_bridge_port_group __rcu *next, |
482 | struct net_bridge_port *port, | 467 | unsigned char state); |
483 | struct br_ip *group, | 468 | void br_mdb_init(void); |
484 | struct net_bridge_port_group __rcu *next, | 469 | void br_mdb_uninit(void); |
485 | unsigned char state); | 470 | void br_mdb_notify(struct net_device *dev, struct net_bridge_port *port, |
486 | extern void br_mdb_init(void); | 471 | struct br_ip *group, int type); |
487 | extern void br_mdb_uninit(void); | ||
488 | extern void br_mdb_notify(struct net_device *dev, struct net_bridge_port *port, | ||
489 | struct br_ip *group, int type); | ||
490 | 472 | ||
491 | #define mlock_dereference(X, br) \ | 473 | #define mlock_dereference(X, br) \ |
492 | rcu_dereference_protected(X, lockdep_is_held(&br->multicast_lock)) | 474 | rcu_dereference_protected(X, lockdep_is_held(&br->multicast_lock)) |
@@ -591,22 +573,21 @@ static inline void br_mdb_uninit(void) | |||
591 | 573 | ||
592 | /* br_vlan.c */ | 574 | /* br_vlan.c */ |
593 | #ifdef CONFIG_BRIDGE_VLAN_FILTERING | 575 | #ifdef CONFIG_BRIDGE_VLAN_FILTERING |
594 | extern bool br_allowed_ingress(struct net_bridge *br, struct net_port_vlans *v, | 576 | bool br_allowed_ingress(struct net_bridge *br, struct net_port_vlans *v, |
595 | struct sk_buff *skb, u16 *vid); | 577 | struct sk_buff *skb, u16 *vid); |
596 | extern bool br_allowed_egress(struct net_bridge *br, | 578 | bool br_allowed_egress(struct net_bridge *br, const struct net_port_vlans *v, |
597 | const struct net_port_vlans *v, | 579 | const struct sk_buff *skb); |
598 | const struct sk_buff *skb); | 580 | struct sk_buff *br_handle_vlan(struct net_bridge *br, |
599 | extern struct sk_buff *br_handle_vlan(struct net_bridge *br, | 581 | const struct net_port_vlans *v, |
600 | const struct net_port_vlans *v, | 582 | struct sk_buff *skb); |
601 | struct sk_buff *skb); | 583 | int br_vlan_add(struct net_bridge *br, u16 vid, u16 flags); |
602 | extern int br_vlan_add(struct net_bridge *br, u16 vid, u16 flags); | 584 | int br_vlan_delete(struct net_bridge *br, u16 vid); |
603 | extern int br_vlan_delete(struct net_bridge *br, u16 vid); | 585 | void br_vlan_flush(struct net_bridge *br); |
604 | extern void br_vlan_flush(struct net_bridge *br); | 586 | int br_vlan_filter_toggle(struct net_bridge *br, unsigned long val); |
605 | extern int br_vlan_filter_toggle(struct net_bridge *br, unsigned long val); | 587 | int nbp_vlan_add(struct net_bridge_port *port, u16 vid, u16 flags); |
606 | extern int nbp_vlan_add(struct net_bridge_port *port, u16 vid, u16 flags); | 588 | int nbp_vlan_delete(struct net_bridge_port *port, u16 vid); |
607 | extern int nbp_vlan_delete(struct net_bridge_port *port, u16 vid); | 589 | void nbp_vlan_flush(struct net_bridge_port *port); |
608 | extern void nbp_vlan_flush(struct net_bridge_port *port); | 590 | bool nbp_vlan_find(struct net_bridge_port *port, u16 vid); |
609 | extern bool nbp_vlan_find(struct net_bridge_port *port, u16 vid); | ||
610 | 591 | ||
611 | static inline struct net_port_vlans *br_get_vlan_info( | 592 | static inline struct net_port_vlans *br_get_vlan_info( |
612 | const struct net_bridge *br) | 593 | const struct net_bridge *br) |
@@ -727,9 +708,9 @@ static inline u16 br_get_pvid(const struct net_port_vlans *v) | |||
727 | 708 | ||
728 | /* br_netfilter.c */ | 709 | /* br_netfilter.c */ |
729 | #ifdef CONFIG_BRIDGE_NETFILTER | 710 | #ifdef CONFIG_BRIDGE_NETFILTER |
730 | extern int br_netfilter_init(void); | 711 | int br_netfilter_init(void); |
731 | extern void br_netfilter_fini(void); | 712 | void br_netfilter_fini(void); |
732 | extern void br_netfilter_rtable_init(struct net_bridge *); | 713 | void br_netfilter_rtable_init(struct net_bridge *); |
733 | #else | 714 | #else |
734 | #define br_netfilter_init() (0) | 715 | #define br_netfilter_init() (0) |
735 | #define br_netfilter_fini() do { } while(0) | 716 | #define br_netfilter_fini() do { } while(0) |
@@ -737,43 +718,39 @@ extern void br_netfilter_rtable_init(struct net_bridge *); | |||
737 | #endif | 718 | #endif |
738 | 719 | ||
739 | /* br_stp.c */ | 720 | /* br_stp.c */ |
740 | extern void br_log_state(const struct net_bridge_port *p); | 721 | void br_log_state(const struct net_bridge_port *p); |
741 | extern struct net_bridge_port *br_get_port(struct net_bridge *br, | 722 | struct net_bridge_port *br_get_port(struct net_bridge *br, u16 port_no); |
742 | u16 port_no); | 723 | void br_init_port(struct net_bridge_port *p); |
743 | extern void br_init_port(struct net_bridge_port *p); | 724 | void br_become_designated_port(struct net_bridge_port *p); |
744 | extern void br_become_designated_port(struct net_bridge_port *p); | ||
745 | 725 | ||
746 | extern void __br_set_forward_delay(struct net_bridge *br, unsigned long t); | 726 | void __br_set_forward_delay(struct net_bridge *br, unsigned long t); |
747 | extern int br_set_forward_delay(struct net_bridge *br, unsigned long x); | 727 | int br_set_forward_delay(struct net_bridge *br, unsigned long x); |
748 | extern int br_set_hello_time(struct net_bridge *br, unsigned long x); | 728 | int br_set_hello_time(struct net_bridge *br, unsigned long x); |
749 | extern int br_set_max_age(struct net_bridge *br, unsigned long x); | 729 | int br_set_max_age(struct net_bridge *br, unsigned long x); |
750 | 730 | ||
751 | 731 | ||
752 | /* br_stp_if.c */ | 732 | /* br_stp_if.c */ |
753 | extern void br_stp_enable_bridge(struct net_bridge *br); | 733 | void br_stp_enable_bridge(struct net_bridge *br); |
754 | extern void br_stp_disable_bridge(struct net_bridge *br); | 734 | void br_stp_disable_bridge(struct net_bridge *br); |
755 | extern void br_stp_set_enabled(struct net_bridge *br, unsigned long val); | 735 | void br_stp_set_enabled(struct net_bridge *br, unsigned long val); |
756 | extern void br_stp_enable_port(struct net_bridge_port *p); | 736 | void br_stp_enable_port(struct net_bridge_port *p); |
757 | extern void br_stp_disable_port(struct net_bridge_port *p); | 737 | void br_stp_disable_port(struct net_bridge_port *p); |
758 | extern bool br_stp_recalculate_bridge_id(struct net_bridge *br); | 738 | bool br_stp_recalculate_bridge_id(struct net_bridge *br); |
759 | extern void br_stp_change_bridge_id(struct net_bridge *br, const unsigned char *a); | 739 | void br_stp_change_bridge_id(struct net_bridge *br, const unsigned char *a); |
760 | extern void br_stp_set_bridge_priority(struct net_bridge *br, | 740 | void br_stp_set_bridge_priority(struct net_bridge *br, u16 newprio); |
761 | u16 newprio); | 741 | int br_stp_set_port_priority(struct net_bridge_port *p, unsigned long newprio); |
762 | extern int br_stp_set_port_priority(struct net_bridge_port *p, | 742 | int br_stp_set_path_cost(struct net_bridge_port *p, unsigned long path_cost); |
763 | unsigned long newprio); | 743 | ssize_t br_show_bridge_id(char *buf, const struct bridge_id *id); |
764 | extern int br_stp_set_path_cost(struct net_bridge_port *p, | ||
765 | unsigned long path_cost); | ||
766 | extern ssize_t br_show_bridge_id(char *buf, const struct bridge_id *id); | ||
767 | 744 | ||
768 | /* br_stp_bpdu.c */ | 745 | /* br_stp_bpdu.c */ |
769 | struct stp_proto; | 746 | struct stp_proto; |
770 | extern void br_stp_rcv(const struct stp_proto *proto, struct sk_buff *skb, | 747 | void br_stp_rcv(const struct stp_proto *proto, struct sk_buff *skb, |
771 | struct net_device *dev); | 748 | struct net_device *dev); |
772 | 749 | ||
773 | /* br_stp_timer.c */ | 750 | /* br_stp_timer.c */ |
774 | extern void br_stp_timer_init(struct net_bridge *br); | 751 | void br_stp_timer_init(struct net_bridge *br); |
775 | extern void br_stp_port_timer_init(struct net_bridge_port *p); | 752 | void br_stp_port_timer_init(struct net_bridge_port *p); |
776 | extern unsigned long br_timer_value(const struct timer_list *timer); | 753 | unsigned long br_timer_value(const struct timer_list *timer); |
777 | 754 | ||
778 | /* br.c */ | 755 | /* br.c */ |
779 | #if IS_ENABLED(CONFIG_ATM_LANE) | 756 | #if IS_ENABLED(CONFIG_ATM_LANE) |
@@ -782,23 +759,23 @@ extern int (*br_fdb_test_addr_hook)(struct net_device *dev, unsigned char *addr) | |||
782 | 759 | ||
783 | /* br_netlink.c */ | 760 | /* br_netlink.c */ |
784 | extern struct rtnl_link_ops br_link_ops; | 761 | extern struct rtnl_link_ops br_link_ops; |
785 | extern int br_netlink_init(void); | 762 | int br_netlink_init(void); |
786 | extern void br_netlink_fini(void); | 763 | void br_netlink_fini(void); |
787 | extern void br_ifinfo_notify(int event, struct net_bridge_port *port); | 764 | void br_ifinfo_notify(int event, struct net_bridge_port *port); |
788 | extern int br_setlink(struct net_device *dev, struct nlmsghdr *nlmsg); | 765 | int br_setlink(struct net_device *dev, struct nlmsghdr *nlmsg); |
789 | extern int br_dellink(struct net_device *dev, struct nlmsghdr *nlmsg); | 766 | int br_dellink(struct net_device *dev, struct nlmsghdr *nlmsg); |
790 | extern int br_getlink(struct sk_buff *skb, u32 pid, u32 seq, | 767 | int br_getlink(struct sk_buff *skb, u32 pid, u32 seq, struct net_device *dev, |
791 | struct net_device *dev, u32 filter_mask); | 768 | u32 filter_mask); |
792 | 769 | ||
793 | #ifdef CONFIG_SYSFS | 770 | #ifdef CONFIG_SYSFS |
794 | /* br_sysfs_if.c */ | 771 | /* br_sysfs_if.c */ |
795 | extern const struct sysfs_ops brport_sysfs_ops; | 772 | extern const struct sysfs_ops brport_sysfs_ops; |
796 | extern int br_sysfs_addif(struct net_bridge_port *p); | 773 | int br_sysfs_addif(struct net_bridge_port *p); |
797 | extern int br_sysfs_renameif(struct net_bridge_port *p); | 774 | int br_sysfs_renameif(struct net_bridge_port *p); |
798 | 775 | ||
799 | /* br_sysfs_br.c */ | 776 | /* br_sysfs_br.c */ |
800 | extern int br_sysfs_addbr(struct net_device *dev); | 777 | int br_sysfs_addbr(struct net_device *dev); |
801 | extern void br_sysfs_delbr(struct net_device *dev); | 778 | void br_sysfs_delbr(struct net_device *dev); |
802 | 779 | ||
803 | #else | 780 | #else |
804 | 781 | ||