[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1429498885.28239.4.camel@ellerman.id.au>
Date: Mon, 20 Apr 2015 13:01:25 +1000
From: Michael Ellerman <mpe@...erman.id.au>
To: Sowmini Varadhan <sowmini.varadhan@...cle.com>
Cc: benh@...nel.crashing.org, aik@....ibm.com, anton@....ibm.com,
paulus@...ba.org, linuxppc-dev@...ts.ozlabs.org,
sparclinux@...r.kernel.org, davem@...emloft.net,
linux@...ck-us.net, linux-kernel@...r.kernel.org
Subject: Re: Fwd: Re: sparc64: Build failure due to commit f1600e549b94
(sparc: Make sparc64 use scalable lib/iommu-common.c functions)
On Sun, 2015-04-19 at 14:36 -0400, Sowmini Varadhan wrote:
> > On (04/19/15 14:09), David Miller wrote:
> >
> > > On (04/18/15 21:23), Guenter Roeck wrote:
> > >> lib/built-in.o:(.discard+0x1): multiple definition of
> > >> `__pcpu_unique_iommu_pool_hash'
> > >> arch/powerpc/kernel/built-in.o:(.discard+0x18): first defined here
> > >> .. I get a similar failure in the
> > >> powerpc:allmodconfig build
> :
> >
> > Maybe ping the powerpc folks becuase if they can do a quick
> > conversion, this change isn't necessary.
>
> linuxppc-dev,
>
> The disussion above [http://www.spinics.net/lists/sparclinux/msg13835.html]
> is in reference to the issue that Guenter Roeck
> identified. The problem is that we have a
> static DEFINE_PER_CPU(unsigned int, iommu_pool_hash);
It's static ..
> if CONFIG_DEBUG_FORCE_WEAK_PER_CPU is configured, which is the case here.
> The marked line above shows that __pcpu_unique_iommu_pool_hash is declared as
> global variable"
OK, so why doesn't CONFIG_DEBUG_FORCE_WEAK_PER_CPU depend on s390 and/or alpha?
Someone needs to be doing s390/alpha builds with that enabled anyway, because
otherwise a clash between generic code and s390/alpha won't be caught.
Or if that's too hard we can rename the powerpc version, but it seems silly to
rename a powerpc variable to deal with a debug option that is only useful for
s390/alpha.
cheers
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists