diff options
| author | stephen hemminger <stephen@networkplumber.org> | 2014-03-10 12:48:38 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2014-03-11 16:37:14 -0400 |
| commit | a19a7ec8fc8eb32113efeaff2a1ceca273726e9b (patch) | |
| tree | e998ae9ed7c56bd97741f656a41cfbd897faaafb /drivers/net/bonding | |
| parent | 693350c2ffe42a21185070b1e8ab77959b45d61e (diff) | |
bonding: force cast of IP address in options
The option code is taking IP address and putting it into a generic
container. Force cast to silence sparse warnings.
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bonding')
| -rw-r--r-- | drivers/net/bonding/bond_netlink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/bonding/bond_netlink.c b/drivers/net/bonding/bond_netlink.c index 20659b114f24..f847e165d252 100644 --- a/drivers/net/bonding/bond_netlink.c +++ b/drivers/net/bonding/bond_netlink.c | |||
| @@ -199,7 +199,7 @@ static int bond_changelink(struct net_device *bond_dev, | |||
| 199 | nla_for_each_nested(attr, data[IFLA_BOND_ARP_IP_TARGET], rem) { | 199 | nla_for_each_nested(attr, data[IFLA_BOND_ARP_IP_TARGET], rem) { |
| 200 | __be32 target = nla_get_be32(attr); | 200 | __be32 target = nla_get_be32(attr); |
| 201 | 201 | ||
| 202 | bond_opt_initval(&newval, target); | 202 | bond_opt_initval(&newval, (__force u64)target); |
| 203 | err = __bond_opt_set(bond, BOND_OPT_ARP_TARGETS, | 203 | err = __bond_opt_set(bond, BOND_OPT_ARP_TARGETS, |
| 204 | &newval); | 204 | &newval); |
| 205 | if (err) | 205 | if (err) |
