2009-04-21 18:53:43

by Subrata Modak

[permalink] [raw]
Subject: [BUILD FAILURE 08/12] Next April 21 : PPC64 randconfig [drivers/net/pasemi_mac_driver.ko]

Reported this on 9th April earlier:
http://lkml.org/lkml/2009/4/9/276,

I hope the following Patch will solve this problem as well:
Geoff Levand <[email protected]> provided a patch on 17th
April.
http://lkml.org/lkml/2009/4/17/313,

WRAP arch/powerpc/boot/zImage.pmac
strip -s -R .comment vmlinux -o arch/powerpc/boot/zImage.iseries
printf "\x02" | dd of=arch/powerpc/boot/zImage.iseries conv=notrunc bs=1
seek=17
1+0 records in
1+0 records out
1 byte (1 B) copied, 0.0358298 s, 0.0 kB/s
Building modules, stage 2.
MODPOST 338 modules
ERROR: ".lro_receive_skb" [drivers/net/pasemi_mac_driver.ko] undefined!
ERROR: ".lro_flush_all" [drivers/net/pasemi_mac_driver.ko] undefined!
WARNING: modpost: Found 1 section mismatch(es).
To see full details build your kernel with:
'make CONFIG_DEBUG_SECTION_MISMATCH=y'
make[1]: *** [__modpost] Error 1
make: *** [modules] Error 2
---

Regards--
Subrata


Attachments:
randconfig8-next20090421-ppc64 (44.06 kB)

2009-04-21 19:31:07

by Olof Johansson

[permalink] [raw]
Subject: INET_LRO as tristate and use from modules (was: Re: [BUILD FAILURE 08/12] Next April 21 : PPC64 randconfig [drivers/net/pasemi_mac_driver.ko])

On Wed, Apr 22, 2009 at 12:23:03AM +0530, Subrata Modak wrote:
> Reported this on 9th April earlier:
> http://lkml.org/lkml/2009/4/9/276,
>
> I hope the following Patch will solve this problem as well:
> Geoff Levand <[email protected]> provided a patch on 17th
> April.
> http://lkml.org/lkml/2009/4/17/313,

No, that's a separate issue.

> MODPOST 338 modules
> ERROR: ".lro_receive_skb" [drivers/net/pasemi_mac_driver.ko] undefined!
> ERROR: ".lro_flush_all" [drivers/net/pasemi_mac_driver.ko] undefined!
> WARNING: modpost: Found 1 section mismatch(es).
> To see full details build your kernel with:
> 'make CONFIG_DEBUG_SECTION_MISMATCH=y'
> make[1]: *** [__modpost] Error 1
> make: *** [modules] Error 2

This seems to be a problem with all tristate-capable drivers that use
LRO (and uses select INET_LRO in their Kconfig): INET_LRO is a tristate
and can thus be a module. Looks like it needs to be a bool instead?


-Olof

2009-04-22 09:12:41

by David Miller

[permalink] [raw]
Subject: Re: INET_LRO as tristate and use from modules

From: Olof Johansson <[email protected]>
Date: Tue, 21 Apr 2009 14:33:19 -0500

> On Wed, Apr 22, 2009 at 12:23:03AM +0530, Subrata Modak wrote:
>> MODPOST 338 modules
>> ERROR: ".lro_receive_skb" [drivers/net/pasemi_mac_driver.ko] undefined!
>> ERROR: ".lro_flush_all" [drivers/net/pasemi_mac_driver.ko] undefined!
>> WARNING: modpost: Found 1 section mismatch(es).
>> To see full details build your kernel with:
>> 'make CONFIG_DEBUG_SECTION_MISMATCH=y'
>> make[1]: *** [__modpost] Error 1
>> make: *** [modules] Error 2
>
> This seems to be a problem with all tristate-capable drivers that use
> LRO (and uses select INET_LRO in their Kconfig): INET_LRO is a tristate
> and can thus be a module. Looks like it needs to be a bool instead?

Yes, making this a bool would be the easiest fix.

By why don't we get the same problem for PHYLIB? It's also
tristate and "select"'d by a whole slew of networking drivers.