diff options
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/netdevice.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 8576ca928dae..993758f924be 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h | |||
@@ -827,6 +827,7 @@ struct packet_type { | |||
827 | extern rwlock_t dev_base_lock; /* Device list lock */ | 827 | extern rwlock_t dev_base_lock; /* Device list lock */ |
828 | 828 | ||
829 | 829 | ||
830 | #ifdef CONFIG_NET | ||
830 | #define for_each_netdev(net, d) \ | 831 | #define for_each_netdev(net, d) \ |
831 | list_for_each_entry(d, &(net)->dev_base_head, dev_list) | 832 | list_for_each_entry(d, &(net)->dev_base_head, dev_list) |
832 | #define for_each_netdev_safe(net, d, n) \ | 833 | #define for_each_netdev_safe(net, d, n) \ |
@@ -850,6 +851,7 @@ static inline struct net_device *first_net_device(struct net *net) | |||
850 | return list_empty(&net->dev_base_head) ? NULL : | 851 | return list_empty(&net->dev_base_head) ? NULL : |
851 | net_device_entry(net->dev_base_head.next); | 852 | net_device_entry(net->dev_base_head.next); |
852 | } | 853 | } |
854 | #endif | ||
853 | 855 | ||
854 | extern int netdev_boot_setup_check(struct net_device *dev); | 856 | extern int netdev_boot_setup_check(struct net_device *dev); |
855 | extern unsigned long netdev_boot_base(const char *prefix, int unit); | 857 | extern unsigned long netdev_boot_base(const char *prefix, int unit); |