From: David Miller <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
Date: Mon, 31 Mar 2008 00:28:36 -0700 (PDT) [thread overview]
Message-ID: <20080331.002836.159833482.davem@davemloft.net> (raw)
In-Reply-To: <20080330135502.ee27f8a4.sfr@canb.auug.org.au>
From: Stephen Rothwell <sfr@canb.auug.org.au>
Date: Sun, 30 Mar 2008 13:55:02 +1100
> Hi Haavard,
>
> On Sat, 29 Mar 2008 19:12:55 +0100 Haavard Skinnemoen <haavard.skinnemoen@atmel.com> 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 <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);
next prev parent reply other threads:[~2008-03-31 7:28 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-29 11:33 linux-next: Tree for March 29 Stephen Rothwell
2008-03-29 18:12 ` Haavard Skinnemoen
2008-03-30 2:55 ` Stephen Rothwell
2008-03-31 7:28 ` David Miller [this message]
-- strict thread matches above, loose matches on Subject: below --
2010-03-29 7:29 Stephen Rothwell
2011-03-29 2:11 Stephen Rothwell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080331.002836.159833482.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=haavard.skinnemoen@atmel.com \
--cc=linux-ide@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-next@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=sfr@canb.auug.org.au \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox