Re: [PATCH] [2.6.17-rc6] Section mismatch in drivers/net/ne.o during modpost

2006-06-13 Thread Sam Ravnborg
> Probably over enthusiastic gcc inlining. gcc 4 will inline functions > that are not declared as inline. That is not so bad, except that some > versions of gcc will ignore a mismatch in function attributes and > inline a __init function into normal text, generating additional > section mismatc

Re: [PATCH] [2.6.17-rc6] Section mismatch in drivers/net/ne.o during modpost

2006-06-13 Thread Randy.Dunlap
On Tue, 13 Jun 2006 15:35:29 +1000 Keith Owens wrote: > Mikael Pettersson (on Sun, 11 Jun 2006 02:51:21 +0200 (MEST)) wrote: > >On Sat, 10 Jun 2006 12:13:35 -0700, Randy.Dunlap wrote: > >>On Sat, 10 Jun 2006 14:11:42 +0200 (MEST) Mikael Pettersson wrote: > >> > >>> While compiling 2.6.17-rc6 for a

Re: [PATCH] [2.6.17-rc6] Section mismatch in drivers/net/ne.o during modpost

2006-06-12 Thread Keith Owens
Mikael Pettersson (on Sun, 11 Jun 2006 02:51:21 +0200 (MEST)) wrote: >On Sat, 10 Jun 2006 12:13:35 -0700, Randy.Dunlap wrote: >>On Sat, 10 Jun 2006 14:11:42 +0200 (MEST) Mikael Pettersson wrote: >> >>> While compiling 2.6.17-rc6 for a 486 with an NE2000 ISA ethernet card, I >>> got: >>> >>> WARNI

Re: [PATCH] [2.6.17-rc6] Section mismatch in drivers/net/ne.o during modpost

2006-06-11 Thread Sam Ravnborg
On Sun, Jun 11, 2006 at 04:37:31PM +0200, Mikael Pettersson wrote: > On Sat, 10 Jun 2006 22:38:00 +0200, Sam Ravnborg wrote: > >> --- linux-2617-rc6.orig/drivers/net/ne.c > >> +++ linux-2617-rc6/drivers/net/ne.c > >> @@ -829,7 +829,7 @@ that the ne2k probe is the last 8390 bas > >> is at boot) and

Re: [PATCH] [2.6.17-rc6] Section mismatch in drivers/net/ne.o during modpost

2006-06-11 Thread Mikael Pettersson
On Sat, 10 Jun 2006 22:38:00 +0200, Sam Ravnborg wrote: >> --- linux-2617-rc6.orig/drivers/net/ne.c >> +++ linux-2617-rc6/drivers/net/ne.c >> @@ -829,7 +829,7 @@ that the ne2k probe is the last 8390 bas >> is at boot) and so the probe will get confused by any other 8390 cards. >> ISA device autop

Re: [PATCH] [2.6.17-rc6] Section mismatch in drivers/net/ne.o during modpost

2006-06-11 Thread Jan Engelhardt
> >The messages above are from when I used gcc-4.1.1. >With gcc-3.2.3 I only see a single warning. > FTR, gcc 4.0.x is also 'affected'. Jan Engelhardt -- - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http

Re: [PATCH] [2.6.17-rc6] Section mismatch in drivers/net/ne.o during modpost

2006-06-11 Thread Jan Engelhardt
>> Doesn't look serious. init_module() is not __init, but it calls >> some __init functions and touches some __initdata. > >This is the typical case with inconsistent tagging. > Worse yet, I once experienced a double-definition error, that is, I had __init int init_module(void) { /* modu

Re: [PATCH] [2.6.17-rc6] Section mismatch in drivers/net/ne.o during modpost

2006-06-10 Thread Mikael Pettersson
On Sat, 10 Jun 2006 12:13:35 -0700, Randy.Dunlap wrote: >On Sat, 10 Jun 2006 14:11:42 +0200 (MEST) Mikael Pettersson wrote: > >> While compiling 2.6.17-rc6 for a 486 with an NE2000 ISA ethernet card, I got: >> >> WARNING: drivers/net/ne.o - Section mismatch: reference to >> .init.data:isapnp_clon

Re: [PATCH] [2.6.17-rc6] Section mismatch in drivers/net/ne.o during modpost

2006-06-10 Thread Sam Ravnborg
> > > > Not sure how serious this is; the driver seems to work fine later on. > > Doesn't look serious. init_module() is not __init, but it calls > some __init functions and touches some __initdata. This is the typical case with inconsistent tagging. > BTW, I would be happy to see some consist

[PATCH] [2.6.17-rc6] Section mismatch in drivers/net/ne.o during modpost

2006-06-10 Thread Randy.Dunlap
On Sat, 10 Jun 2006 14:11:42 +0200 (MEST) Mikael Pettersson wrote: > While compiling 2.6.17-rc6 for a 486 with an NE2000 ISA ethernet card, I got: > > WARNING: drivers/net/ne.o - Section mismatch: reference to > .init.data:isapnp_clone_list from .text between 'init_module' (at offset > 0x158) a

[2.6.17-rc6] Section mismatch in drivers/net/ne.o during modpost

2006-06-10 Thread Mikael Pettersson
While compiling 2.6.17-rc6 for a 486 with an NE2000 ISA ethernet card, I got: Building modules, stage 2. make -rR -f /tmp/linux-2.6.17-rc6/scripts/Makefile.modpost scripts/mod/modpost -o /tmp/linux-2.6.17-rc6/Module.symvers vmlinux drivers/net/8390.o drivers/net/ne.o lib/crc32.o net/packe