login
Header Space

 
 

Re: linux-next: Tree for March 29

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <sfr@...>
Cc: <haavard.skinnemoen@...>, <linux-next@...>, <linux-kernel@...>, <linux-ide@...>, <netdev@...>
Date: Monday, March 31, 2008 - 3:28 am

From: Stephen Rothwell <sfr@canb.auug.org.au>
Date: Sun, 30 Mar 2008 13:55:02 +1100


I've checked in the following to net-2.6.26 to fix this, thanks:

commit 3edf8fa5ccf10688a9280b5cbca8ed3947c42866
Author: David S. Miller <davem@davemloft.net>
Date:   Mon Mar 31 00:28:14 2008 -0700

    [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>

diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index 8576ca9..993758f 100644
--- a/include/linux/netdevice.h
+++ b/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);
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
linux-next: Tree for March 29, Stephen Rothwell, (Sat Mar 29, 7:33 am)
Re: linux-next: Tree for March 29, Haavard Skinnemoen, (Sat Mar 29, 2:12 pm)
Re: linux-next: Tree for March 29, Stephen Rothwell, (Sat Mar 29, 10:55 pm)
Re: linux-next: Tree for March 29, David Miller, (Mon Mar 31, 3:28 am)
speck-geostationary