Skip to content

Commit

Permalink
bonding: remove extraneous definitions from bonding.h
Browse files Browse the repository at this point in the history
All of the symbols either only exist in bond_options.c or nowhere at
all. These symbols were verified to not exist in the code base by
using `git grep` and their removal was verified by compiling bonding.ko.

Signed-off-by: Jonathan Toppins <jtoppins@redhat.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
  • Loading branch information
Jonathan Toppins authored and Jakub Kicinski committed Aug 11, 2021
1 parent bc8968e commit 891a88f
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions include/net/bonding.h
Original file line number Diff line number Diff line change
Expand Up @@ -150,11 +150,6 @@ struct bond_params {
u8 ad_actor_system[ETH_ALEN + 2];
};

struct bond_parm_tbl {
char *modename;
int mode;
};

struct slave {
struct net_device *dev; /* first - useful for panic debug */
struct bonding *bond; /* our master */
Expand Down Expand Up @@ -755,13 +750,6 @@ static inline int bond_get_targets_ip(__be32 *targets, __be32 ip)

/* exported from bond_main.c */
extern unsigned int bond_net_id;
extern const struct bond_parm_tbl bond_lacp_tbl[];
extern const struct bond_parm_tbl xmit_hashtype_tbl[];
extern const struct bond_parm_tbl arp_validate_tbl[];
extern const struct bond_parm_tbl arp_all_targets_tbl[];
extern const struct bond_parm_tbl fail_over_mac_tbl[];
extern const struct bond_parm_tbl pri_reselect_tbl[];
extern struct bond_parm_tbl ad_select_tbl[];

/* exported from bond_netlink.c */
extern struct rtnl_link_ops bond_link_ops;
Expand Down

0 comments on commit 891a88f

Please sign in to comment.