Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a19a7ec8 authored by stephen hemminger's avatar stephen hemminger Committed by David S. Miller
Browse files

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: default avatarStephen Hemminger <stephen@networkplumber.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 693350c2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)