aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/dev.c
diff options
context:
space:
mode:
authorCong Wang <amwang@redhat.com>2013-05-29 11:30:50 +0800
committerDavid S. Miller <davem@davemloft.net>2013-05-28 21:58:54 -0700
commit75538c2b85cf22eb9af6adfaf26ed7219025adeb (patch)
treef6791d0d285ff7e716fe8f225c4648e62a34421e /net/core/dev.c
parentnet: Fix build warnings after mac_header and transport_header became __u16. (diff)
downloadlinux-dev-75538c2b85cf22eb9af6adfaf26ed7219025adeb.tar.xz
linux-dev-75538c2b85cf22eb9af6adfaf26ed7219025adeb.zip
net: always pass struct netdev_notifier_info to netdevice notifiers
commit 351638e7deeed2ec8ce451b53d3 (net: pass info struct via netdevice notifier) breaks booting of my KVM guest, this is due to we still forget to pass struct netdev_notifier_info in several places. This patch completes it. Cc: Jiri Pirko <jiri@resnulli.us> Cc: David S. Miller <davem@davemloft.net> Signed-off-by: Cong Wang <amwang@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/dev.c')
-rw-r--r--net/core/dev.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/net/core/dev.c b/net/core/dev.c
index 6eb621cc3b81..b2e9057be3bf 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -1391,12 +1391,6 @@ void dev_disable_lro(struct net_device *dev)
}
EXPORT_SYMBOL(dev_disable_lro);
-static void netdev_notifier_info_init(struct netdev_notifier_info *info,
- struct net_device *dev)
-{
- info->dev = dev;
-}
-
static int call_netdevice_notifier(struct notifier_block *nb, unsigned long val,
struct net_device *dev)
{