aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2008-03-31 03:28:14 -0400
committerDavid S. Miller <davem@davemloft.net>2008-03-31 03:28:14 -0400
commit3edf8fa5ccf10688a9280b5cbca8ed3947c42866 (patch)
tree800b92fde2349d42a7bf24175ce1190fd4406557 /include
parent17eed249539a7b756ca65a5cb0940abc48ef553b (diff)
[NET]: Fix allnoconfig build on powerpc and avr32
As reported by Haavard Skinnemoen and Stephen Rothwell: > allnoconfig fails with > > include/linux/netdevice.h:843: error: implicit declaration of function 'dev_net' > > which seems to be because the definition of dev_net is inside #ifdef > CONFIG_NET, while next_net_device, which calls it, is not. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r--include/linux/netdevice.h2
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 {
827extern rwlock_t dev_base_lock; /* Device list lock */ 827extern 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
854extern int netdev_boot_setup_check(struct net_device *dev); 856extern int netdev_boot_setup_check(struct net_device *dev);
855extern unsigned long netdev_boot_base(const char *prefix, int unit); 857extern unsigned long netdev_boot_base(const char *prefix, int unit);