Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755433AbYCaH2t (ORCPT ); Mon, 31 Mar 2008 03:28:49 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752832AbYCaH2i (ORCPT ); Mon, 31 Mar 2008 03:28:38 -0400 Received: from 74-93-104-97-Washington.hfc.comcastbusiness.net ([74.93.104.97]:46896 "EHLO sunset.davemloft.net" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1752556AbYCaH2h (ORCPT ); Mon, 31 Mar 2008 03:28:37 -0400 Date: Mon, 31 Mar 2008 00:28:36 -0700 (PDT) Message-Id: <20080331.002836.159833482.davem@davemloft.net> To: sfr@canb.auug.org.au Cc: haavard.skinnemoen@atmel.com, linux-next@vger.kernel.org, linux-kernel@vger.kernel.org, linux-ide@vger.kernel.org, netdev@vger.kernel.org Subject: Re: linux-next: Tree for March 29 From: David Miller In-Reply-To: <20080330135502.ee27f8a4.sfr@canb.auug.org.au> References: <20080329223354.304e2722.sfr@canb.auug.org.au> <20080329191255.7312e036@hskinnemo-gx620.norway.atmel.com> <20080330135502.ee27f8a4.sfr@canb.auug.org.au> X-Mailer: Mew version 5.2 on Emacs 22.1 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2149 Lines: 60 From: Stephen Rothwell Date: Sun, 30 Mar 2008 13:55:02 +1100 > Hi Haavard, > > On Sat, 29 Mar 2008 19:12:55 +0100 Haavard Skinnemoen wrote: > > > > 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. > > Thanks for tracking these down. I've checked in the following to net-2.6.26 to fix this, thanks: commit 3edf8fa5ccf10688a9280b5cbca8ed3947c42866 Author: David S. Miller 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 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); -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/