1 From 50a9c893a750c4eef7fbf60f5b6eb4833e35a943 Mon Sep 17 00:00:00 2001
2 From: Ioana Radulescu <ruxandra.radulescu@nxp.com>
3 Date: Wed, 24 Jul 2019 21:43:49 +0300
4 Subject: [PATCH] staging: dpaa2-evb: Update netlink attributes API
6 Account for upstream changes in some nla functions.
8 Signed-off-by: Ioana Radulescu <ruxandra.radulescu@nxp.com>
10 drivers/staging/fsl-dpaa2/evb/evb.c | 11 ++++++-----
11 1 file changed, 6 insertions(+), 5 deletions(-)
13 --- a/drivers/staging/fsl-dpaa2/evb/evb.c
14 +++ b/drivers/staging/fsl-dpaa2/evb/evb.c
15 @@ -532,8 +532,8 @@ static int evb_setlink(struct net_device
17 attr = nlmsg_find_attr(nlh, sizeof(struct ifinfomsg), IFLA_AF_SPEC);
19 - err = nla_parse_nested(tb, IFLA_BRIDGE_MAX, attr,
20 - ifla_br_policy, NULL);
21 + err = nla_parse_nested_deprecated(tb, IFLA_BRIDGE_MAX, attr,
22 + ifla_br_policy, NULL);
25 "nla_parse_nested for br_policy err %d\n",
26 @@ -596,7 +596,7 @@ static int __nla_put_port(struct sk_buff
30 - nest = nla_nest_start(skb, IFLA_PROTINFO | NLA_F_NESTED);
31 + nest = nla_nest_start_noflag(skb, IFLA_PROTINFO | NLA_F_NESTED);
33 netdev_err(netdev, "nla_nest_start failed\n");
35 @@ -648,7 +648,7 @@ static int __nla_put_vlan(struct sk_buff
39 - nest = nla_nest_start(skb, IFLA_AF_SPEC);
40 + nest = nla_nest_start_noflag(skb, IFLA_AF_SPEC);
42 netdev_err(netdev, "nla_nest_start failed");
44 @@ -739,7 +739,8 @@ static int evb_dellink(struct net_device
48 - err = nla_parse_nested(tb, IFLA_BRIDGE_MAX, spec, ifla_br_policy, NULL);
49 + err = nla_parse_nested_deprecated(tb, IFLA_BRIDGE_MAX, spec,
50 + ifla_br_policy, NULL);