From: Alexey Dobriyan <adobriyan@gmail.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: linux-kernel@vger.kernel.org, h-shimamoto@ct.jp.nec.com,
netdev@vger.kernel.org
Subject: [PATCH -mm] Fix dev_load() compilation again
Date: Fri, 5 Sep 2008 23:32:44 +0400 [thread overview]
Message-ID: <20080905193244.GD11569@x200.localdomain> (raw)
In-Reply-To: <20080904224004.d3dd3076.akpm@linux-foundation.org>
dev_load() doesn't exist if MODULES=n.
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
---
include/linux/netdevice.h | 6 ++++++
1 file changed, 6 insertions(+)
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -1639,7 +1639,13 @@ extern int dev_set_allmulti(struct net_device *dev, int inc);
extern void netdev_state_change(struct net_device *dev);
extern void netdev_bonding_change(struct net_device *dev);
extern void netdev_features_change(struct net_device *dev);
+#ifdef CONFIG_MODULES
extern void dev_load(struct net *net, const char *name);
+#else
+static inline void dev_load(struct net *net, const char *name)
+{
+}
+#endif
extern void dev_mcast_init(void);
extern int netdev_max_backlog;
extern int weight_p;
next prev parent reply other threads:[~2008-09-05 19:31 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-05 5:40 2.6.27-rc5-mm1 Andrew Morton
2008-09-05 7:20 ` 2.6.27-rc5-mm1 Takashi Iwai
2008-09-05 7:50 ` 2.6.27-rc5-mm1 Alexander Beregalov
2008-09-05 8:25 ` 2.6.27-rc5-mm1 Andrew Morton
2008-09-05 12:39 ` 2.6.27-rc5-mm1: rmmod ide-cd_mod: tried to init an initialized object, something is seriously wrong Mariusz Kozlowski
2008-09-05 13:28 ` Rafael J. Wysocki
2008-09-05 13:44 ` Mariusz Kozlowski
2008-09-05 16:25 ` Mariusz Kozlowski
2008-09-06 12:35 ` FUJITA Tomonori
2008-09-08 8:43 ` Jens Axboe
2008-09-08 9:27 ` Jens Axboe
2008-09-09 9:07 ` Mariusz Kozlowski
2008-09-09 10:29 ` Jens Axboe
2008-09-09 12:14 ` Mariusz Kozlowski
2008-09-09 13:21 ` Jens Axboe
2008-09-05 17:26 ` 2.6.27-rc5-mm1: list corruption during blk_add_timer() Alexey Dobriyan
2008-09-05 19:40 ` Andrew Morton
2008-09-08 9:30 ` Jens Axboe
2008-09-05 19:32 ` Alexey Dobriyan [this message]
2008-09-05 19:54 ` [PATCH -mm] Fix dev_load() compilation again Hiroshi Shimamoto
2008-09-07 4:08 ` Stephen Rothwell
2008-09-08 22:17 ` Andrew Morton
2008-09-09 6:27 ` Johannes Berg
2008-09-09 11:07 ` 2.6.27-rc5-mm1 Dmitri Vorobiev
2008-09-11 10:16 ` 2.6.27-rc5-mm1 Dmitri Vorobiev
2008-09-11 14:59 ` 2.6.27-rc5-mm1 Kevin D. Kissell
2008-09-15 22:01 ` 2.6.27-rc5-mm1 Rik van Riel
2008-09-15 23:00 ` 2.6.27-rc5-mm1 Michael Chan
2008-09-16 18:09 ` 2.6.27-rc5-mm1 Rik van Riel
2008-09-16 23:01 ` 2.6.27-rc5-mm1 Rik van Riel
2008-09-17 19:23 ` 2.6.27-rc5-mm1 Benjamin Li
[not found] ` <1221667442-4495-1-git-send-email-benli@broadcom.com>
[not found] ` <1221667442-4495-2-git-send-email-benli@broadcom.com>
2008-09-18 23:46 ` [PATCH] bnx2: Promote vector field in bnx2_irq structure from u16 to unsigned int David Miller
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=20080905193244.GD11569@x200.localdomain \
--to=adobriyan@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=h-shimamoto@ct.jp.nec.com \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
/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
all inboxes | Powered by JetHome®