diff options
author | Ben Dooks <ben-linux@fluff.org> | 2008-09-14 11:56:12 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2008-09-24 22:12:57 -0400 |
commit | b22596726bd37c7a4df4a43406a9a60f617d3d02 (patch) | |
tree | c8372b2185713ef239fc158ed52f0f41bb70687a /drivers/net/bonding/bonding.h | |
parent | be61ea52900b97800effbb68478915d73b5d4df2 (diff) |
drivers/net/bonding: sparse fixes for exported tables
The following sparse warnings are being generated
because bonding.h is missing definitons for items
declared in bond_main.c but also used in bond_sysfs.h
Also export bond_dev_list as this is also declared
in bond_main but used elsewhere in drivers/net/bonding.
bond_main.c:105:20: warning: symbol 'bonding_defaults' was not declared. Should it be static?
bond_main.c:148:1: warning: symbol 'bond_dev_list' was not declared. Should it be static?
bond_main.c:162:22: warning: symbol 'bond_lacp_tbl' was not declared. Should it be static?
bond_main.c:168:22: warning: symbol 'bond_mode_tbl' was not declared. Should it be static?
bond_main.c:179:22: warning: symbol 'xmit_hashtype_tbl' was not declared. Should it be static?
bond_main.c:186:22: warning: symbol 'arp_validate_tbl' was not declared. Should it be static?
bond_main.c:194:22: warning: symbol 'fail_over_mac_tbl' was not declared. Should it be static?
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/net/bonding/bonding.h')
-rw-r--r-- | drivers/net/bonding/bonding.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/net/bonding/bonding.h b/drivers/net/bonding/bonding.h index f7b40edabfd8..ffb668dd6d3b 100644 --- a/drivers/net/bonding/bonding.h +++ b/drivers/net/bonding/bonding.h | |||
@@ -333,5 +333,13 @@ void bond_change_active_slave(struct bonding *bond, struct slave *new_active); | |||
333 | void bond_register_arp(struct bonding *); | 333 | void bond_register_arp(struct bonding *); |
334 | void bond_unregister_arp(struct bonding *); | 334 | void bond_unregister_arp(struct bonding *); |
335 | 335 | ||
336 | /* exported from bond_main.c */ | ||
337 | extern struct list_head bond_dev_list; | ||
338 | extern struct bond_parm_tbl bond_lacp_tbl[]; | ||
339 | extern struct bond_parm_tbl bond_mode_tbl[]; | ||
340 | extern struct bond_parm_tbl xmit_hashtype_tbl[]; | ||
341 | extern struct bond_parm_tbl arp_validate_tbl[]; | ||
342 | extern struct bond_parm_tbl fail_over_mac_tbl[]; | ||
343 | |||
336 | #endif /* _LINUX_BONDING_H */ | 344 | #endif /* _LINUX_BONDING_H */ |
337 | 345 | ||