Commit 30bde1f5 authored by Stephen Rothwell's avatar Stephen Rothwell Committed by David S. Miller

rps: fix net-sysfs build for !CONFIG_RPS

Signed-off-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: default avatarEric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 10f744d2
...@@ -466,6 +466,7 @@ static struct attribute_group wireless_group = { ...@@ -466,6 +466,7 @@ static struct attribute_group wireless_group = {
}; };
#endif #endif
#ifdef CONFIG_RPS
/* /*
* RX queue sysfs structures and functions. * RX queue sysfs structures and functions.
*/ */
...@@ -675,7 +676,7 @@ static void rx_queue_remove_kobjects(struct net_device *net) ...@@ -675,7 +676,7 @@ static void rx_queue_remove_kobjects(struct net_device *net)
kobject_put(&net->_rx[i].kobj); kobject_put(&net->_rx[i].kobj);
kset_unregister(net->queues_kset); kset_unregister(net->queues_kset);
} }
#endif /* CONFIG_RPS */
#endif /* CONFIG_SYSFS */ #endif /* CONFIG_SYSFS */
#ifdef CONFIG_HOTPLUG #ifdef CONFIG_HOTPLUG
...@@ -739,7 +740,7 @@ void netdev_unregister_kobject(struct net_device * net) ...@@ -739,7 +740,7 @@ void netdev_unregister_kobject(struct net_device * net)
if (!net_eq(dev_net(net), &init_net)) if (!net_eq(dev_net(net), &init_net))
return; return;
#ifdef CONFIG_SYSFS #ifdef CONFIG_RPS
rx_queue_remove_kobjects(net); rx_queue_remove_kobjects(net);
#endif #endif
...@@ -782,7 +783,7 @@ int netdev_register_kobject(struct net_device *net) ...@@ -782,7 +783,7 @@ int netdev_register_kobject(struct net_device *net)
if (error) if (error)
return error; return error;
#ifdef CONFIG_SYSFS #ifdef CONFIG_RPS
error = rx_queue_register_kobjects(net); error = rx_queue_register_kobjects(net);
if (error) { if (error) {
device_del(dev); device_del(dev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment