netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch 1/8] net: fix compilation NG when !CONFIG_MODULE
@ 2008-09-22 21:50 akpm
  2008-09-23  2:00 ` David Miller
  0 siblings, 1 reply; 4+ messages in thread
From: akpm @ 2008-09-22 21:50 UTC (permalink / raw)
  To: davem; +Cc: netdev, akpm, h-shimamoto

From: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>

  CC      net/core/dev.o
net/core/dev.c:1001: error: redefinition of 'dev_load'
include/linux/netdevice.h:1645: error: previous definition of 'dev_load' was here
make[2]: *** [net/core/dev.o] Error 1

dev_load() is not used when CONFIG_MODULE disabled.

Signed-off-by: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 net/core/dev.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff -puN net/core/dev.c~net-fix-compilation-ng-when-config_module net/core/dev.c
--- a/net/core/dev.c~net-fix-compilation-ng-when-config_module
+++ a/net/core/dev.c
@@ -997,7 +997,7 @@ EXPORT_SYMBOL(netdev_bonding_change);
  *	privileges this function loads the module. If module loading is not
  *	available in this kernel then it becomes a nop.
  */
-
+#ifdef CONFIG_MODULES
 void dev_load(struct net *net, const char *name)
 {
 	struct net_device *dev;
@@ -1009,6 +1009,7 @@ void dev_load(struct net *net, const cha
 	if (!dev && capable(CAP_SYS_MODULE))
 		request_module("%s", name);
 }
+#endif
 
 /**
  *	dev_open	- prepare an interface for use.
_

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [patch 1/8] net: fix compilation NG when !CONFIG_MODULE
  2008-09-22 21:50 [patch 1/8] net: fix compilation NG when !CONFIG_MODULE akpm
@ 2008-09-23  2:00 ` David Miller
  2008-09-23  4:12   ` Andrew Morton
  0 siblings, 1 reply; 4+ messages in thread
From: David Miller @ 2008-09-23  2:00 UTC (permalink / raw)
  To: akpm; +Cc: netdev, h-shimamoto

From: akpm@linux-foundation.org
Date: Mon, 22 Sep 2008 14:50:35 -0700

> From: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
> 
>   CC      net/core/dev.o
> net/core/dev.c:1001: error: redefinition of 'dev_load'
> include/linux/netdevice.h:1645: error: previous definition of 'dev_load' was here
> make[2]: *** [net/core/dev.o] Error 1
> 
> dev_load() is not used when CONFIG_MODULE disabled.
> 
> Signed-off-by: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

Andrew, this problem got introduced by a tree other than networking.
Please push this to whatever subsystem tree added that
dev_load dummy decl in include/linux/netdevice.h

I don't see it in any trees I have here.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [patch 1/8] net: fix compilation NG when !CONFIG_MODULE
  2008-09-23  2:00 ` David Miller
@ 2008-09-23  4:12   ` Andrew Morton
  2008-09-23 15:47     ` Randy.Dunlap
  0 siblings, 1 reply; 4+ messages in thread
From: Andrew Morton @ 2008-09-23  4:12 UTC (permalink / raw)
  To: David Miller; +Cc: netdev, h-shimamoto

On Mon, 22 Sep 2008 19:00:52 -0700 (PDT) David Miller <davem@davemloft.net> wrote:

> From: akpm@linux-foundation.org
> Date: Mon, 22 Sep 2008 14:50:35 -0700
> 
> > From: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
> > 
> >   CC      net/core/dev.o
> > net/core/dev.c:1001: error: redefinition of 'dev_load'
> > include/linux/netdevice.h:1645: error: previous definition of 'dev_load' was here
> > make[2]: *** [net/core/dev.o] Error 1
> > 
> > dev_load() is not used when CONFIG_MODULE disabled.
> > 
> > Signed-off-by: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
> > Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
> 
> Andrew, this problem got introduced by a tree other than networking.
> Please push this to whatever subsystem tree added that
> dev_load dummy decl in include/linux/netdevice.h
> 
> I don't see it in any trees I have here.

OK, I don't see the failure either, so I assume that whichever tree
busted things (rusty?) was indepentently fixed.  I'll drop it, thanks.



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [patch 1/8] net: fix compilation NG when !CONFIG_MODULE
  2008-09-23  4:12   ` Andrew Morton
@ 2008-09-23 15:47     ` Randy.Dunlap
  0 siblings, 0 replies; 4+ messages in thread
From: Randy.Dunlap @ 2008-09-23 15:47 UTC (permalink / raw)
  To: Andrew Morton; +Cc: David Miller, netdev, h-shimamoto

On Mon, 22 Sep 2008, Andrew Morton wrote:

> On Mon, 22 Sep 2008 19:00:52 -0700 (PDT) David Miller <davem@davemloft.net> wrote:
> 
> > From: akpm@linux-foundation.org
> > Date: Mon, 22 Sep 2008 14:50:35 -0700
> > 
> > > From: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
> > > 
> > >   CC      net/core/dev.o
> > > net/core/dev.c:1001: error: redefinition of 'dev_load'
> > > include/linux/netdevice.h:1645: error: previous definition of 'dev_load' was here
> > > make[2]: *** [net/core/dev.o] Error 1
> > > 
> > > dev_load() is not used when CONFIG_MODULE disabled.
> > > 
> > > Signed-off-by: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
> > > Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
> > 
> > Andrew, this problem got introduced by a tree other than networking.
> > Please push this to whatever subsystem tree added that
> > dev_load dummy decl in include/linux/netdevice.h
> > 
> > I don't see it in any trees I have here.
> 
> OK, I don't see the failure either, so I assume that whichever tree
> busted things (rusty?) was indepentently fixed.  I'll drop it, thanks.

You asked Rusty to fix it on 2008-SEP-08 here:
http://marc.info/?l=linux-kernel&m=122091240810285&w=2
and Alexey D.'s patch is here:
http://marc.info/?l=linux-netdev&m=122064308827637&w=2

-- 
~Randy

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-09-23 15:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-22 21:50 [patch 1/8] net: fix compilation NG when !CONFIG_MODULE akpm
2008-09-23  2:00 ` David Miller
2008-09-23  4:12   ` Andrew Morton
2008-09-23 15:47     ` Randy.Dunlap

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).