projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
693350c
)
bonding: force cast of IP address in options
author
stephen hemminger
<
[email protected]
>
Mon, 10 Mar 2014 16:48:38 +0000
(09:48 -0700)
committer
David S. Miller
<
[email protected]
>
Tue, 11 Mar 2014 20:37:14 +0000
(16:37 -0400)
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 <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/bonding/bond_netlink.c
patch
|
blob
|
history
diff --git
a/drivers/net/bonding/bond_netlink.c
b/drivers/net/bonding/bond_netlink.c
index 20659b114f24c9b30ff62c1f5518ea9e0680ff8e..f847e165d252fb2a4528fe396b2c4f0553e81ac3 100644
(file)
--- 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,
nla_for_each_nested(attr, data[IFLA_BOND_ARP_IP_TARGET], rem) {
__be32 target = nla_get_be32(attr);
- bond_opt_initval(&newval, target);
+ bond_opt_initval(&newval,
(__force u64)
target);
err = __bond_opt_set(bond, BOND_OPT_ARP_TARGETS,
&newval);
if (err)