* multiple definition of show_mem for pxa
@ 2011-03-23 13:05 Jonathan Cameron
2011-03-23 20:03 ` Russell King - ARM Linux
0 siblings, 1 reply; 2+ messages in thread
From: Jonathan Cameron @ 2011-03-23 13:05 UTC (permalink / raw)
To: linux-arm-kernel
Hi all
Can't immediately track down what changed to cause this issue, but
building with current mainline is giving me:
lib/lib.a(show_mem.o): In function `show_mem':
show_mem.c:(.text+0x13c): multiple definition of `show_mem'
arch/arm/mm/built-in.o:copypage-xscale.c:(.text+0xfcc): first defined here
make: *** [vmlinux.o] Error 1
Anyone know what caused this?
There are indeed two versions of mem_info, the generic one and one
in arch/arm/mm/init.c but I think they have both been around for
some time without issue.
Thanks,
Jonathan
^ permalink raw reply [flat|nested] 2+ messages in thread
* multiple definition of show_mem for pxa
2011-03-23 13:05 multiple definition of show_mem for pxa Jonathan Cameron
@ 2011-03-23 20:03 ` Russell King - ARM Linux
0 siblings, 0 replies; 2+ messages in thread
From: Russell King - ARM Linux @ 2011-03-23 20:03 UTC (permalink / raw)
To: linux-arm-kernel
On Wed, Mar 23, 2011 at 01:05:04PM +0000, Jonathan Cameron wrote:
> Hi all
>
> Can't immediately track down what changed to cause this issue, but
> building with current mainline is giving me:
>
> lib/lib.a(show_mem.o): In function `show_mem':
> show_mem.c:(.text+0x13c): multiple definition of `show_mem'
> arch/arm/mm/built-in.o:copypage-xscale.c:(.text+0xfcc): first defined here
> make: *** [vmlinux.o] Error 1
>
>
> Anyone know what caused this?
>
> There are indeed two versions of mem_info, the generic one and one
> in arch/arm/mm/init.c but I think they have both been around for
> some time without issue.
The generic one doesn't work on ARM, and it's supposed to override the
generic one. It seems that ddd588b5dd55f14320379961e47683db4e4c1d90
causes the generic one to be pulled in due to a reference to __show_mem()
which then causes show_mem() to be defined twice.
The change in lib/show_mem.c needs to also be ported to ARMs own version.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-03-23 20:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-23 13:05 multiple definition of show_mem for pxa Jonathan Cameron
2011-03-23 20:03 ` Russell King - ARM Linux
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).