提交 e880eb6c 编写于 作者: T Tom Herbert 提交者: David S. Miller

rps: Fix build with CONFIG_SYSFS enabled

Fix build with CONFIG_SYSFS not enabled.
Signed-off-by: NTom Herbert <therbert@google.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 70f60a22
......@@ -739,7 +739,9 @@ void netdev_unregister_kobject(struct net_device * net)
if (!net_eq(dev_net(net), &init_net))
return;
#ifdef CONFIG_SYSFS
rx_queue_remove_kobjects(net);
#endif
device_del(dev);
}
......@@ -780,11 +782,13 @@ int netdev_register_kobject(struct net_device *net)
if (error)
return error;
#ifdef CONFIG_SYSFS
error = rx_queue_register_kobjects(net);
if (error) {
device_del(dev);
return error;
}
#endif
return error;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册