[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20140310094838.6d286cb2@nehalam.linuxnetplumber.net>
Date: Mon, 10 Mar 2014 09:48:38 -0700
From: Stephen Hemminger <stephen@...workplumber.org>
To: Jay Vosburgh <fubar@...ibm.com>,
Veaceslav Falico <vfalico@...hat.com>,
Andy Gospodarek <andy@...yhouse.net>,
David Miller <davem@...emloft.net>
Cc: netdev@...r.kernel.org
Subject: [PATCH net-next] 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@...workplumber.org>
--- a/drivers/net/bonding/bond_netlink.c 2014-02-17 11:52:24.197945173 -0800
+++ b/drivers/net/bonding/bond_netlink.c 2014-03-10 09:45:36.173443246 -0700
@@ -199,7 +199,7 @@ static int bond_changelink(struct net_de
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)
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists