From ad3beb3fd5c8cd1213ec00cf09062257426c24d0 Mon Sep 17 00:00:00 2001 From: "David S. Miller" Date: Mon, 31 Mar 2008 00:28:14 -0700 Subject: [PATCH] --- yaml --- r: 90474 b: refs/heads/master c: 3edf8fa5ccf10688a9280b5cbca8ed3947c42866 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/include/linux/netdevice.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index df2810077370..d24af0aa2874 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 17eed249539a7b756ca65a5cb0940abc48ef553b +refs/heads/master: 3edf8fa5ccf10688a9280b5cbca8ed3947c42866 diff --git a/trunk/include/linux/netdevice.h b/trunk/include/linux/netdevice.h index 8576ca928dae..993758f924be 100644 --- a/trunk/include/linux/netdevice.h +++ b/trunk/include/linux/netdevice.h @@ -827,6 +827,7 @@ struct packet_type { extern rwlock_t dev_base_lock; /* Device list lock */ +#ifdef CONFIG_NET #define for_each_netdev(net, d) \ list_for_each_entry(d, &(net)->dev_base_head, dev_list) #define for_each_netdev_safe(net, d, n) \ @@ -850,6 +851,7 @@ static inline struct net_device *first_net_device(struct net *net) return list_empty(&net->dev_base_head) ? NULL : net_device_entry(net->dev_base_head.next); } +#endif extern int netdev_boot_setup_check(struct net_device *dev); extern unsigned long netdev_boot_base(const char *prefix, int unit);