summaryrefslogtreecommitdiffstats
path: root/net/bluetooth/6lowpan.c
diff options
context:
space:
mode:
authorPetr Machata2018-12-06 18:05:36 +0100
committerDavid S. Miller2018-12-06 22:26:06 +0100
commit00f54e68924eaf075f3f24be18557899d347bc4a (patch)
treefa59ed2835386585396ebba68aecd4dd6350362f /net/bluetooth/6lowpan.c
parenttcp: fix code style in tcp_recvmsg() (diff)
downloadkernel-qcow2-linux-00f54e68924eaf075f3f24be18557899d347bc4a.tar.gz
kernel-qcow2-linux-00f54e68924eaf075f3f24be18557899d347bc4a.tar.xz
kernel-qcow2-linux-00f54e68924eaf075f3f24be18557899d347bc4a.zip
net: core: dev: Add extack argument to dev_open()
In order to pass extack together with NETDEV_PRE_UP notifications, it's necessary to route the extack to __dev_open() from diverse (possibly indirect) callers. One prominent API through which the notification is invoked is dev_open(). Therefore extend dev_open() with and extra extack argument and update all users. Most of the calls end up just encoding NULL, but bond and team drivers have the extack readily available. Signed-off-by: Petr Machata <petrm@mellanox.com> Acked-by: Jiri Pirko <jiri@mellanox.com> Reviewed-by: Ido Schimmel <idosch@mellanox.com> Reviewed-by: David Ahern <dsahern@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bluetooth/6lowpan.c')
-rw-r--r--net/bluetooth/6lowpan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/6lowpan.c b/net/bluetooth/6lowpan.c
index 828e87fe8027..9d79c7de234a 100644
--- a/net/bluetooth/6lowpan.c
+++ b/net/bluetooth/6lowpan.c
@@ -607,7 +607,7 @@ static void ifup(struct net_device *netdev)
int err;
rtnl_lock();
- err = dev_open(netdev);
+ err = dev_open(netdev, NULL);
if (err < 0)
BT_INFO("iface %s cannot be opened (%d)", netdev->name, err);
rtnl_unlock();