From: James Bottomley <James.Bottomley@HansenPartnership.com>
To: "Michał Mirosław" <mirq-linux@rere.qmqm.pl>
Cc: netdev@vger.kernel.org, David Miller <davem@davemloft.net>
Subject: Re: Section conflict compile failures in net
Date: Fri, 27 May 2011 18:04:37 -0500 [thread overview]
Message-ID: <1306537477.12244.13.camel@mulgrave.site> (raw)
In-Reply-To: <20110527080728.GA2108@rere.qmqm.pl>
On Fri, 2011-05-27 at 10:07 +0200, Michał Mirosław wrote:
> On Thu, May 26, 2011 at 04:39:53PM -0500, James Bottomley wrote:
> > I'm now getting a ton of errors like this in git head:
> >
> > CC [M] drivers/net/3c59x.o
> > CC [M] drivers/net/hp100.o
> > CC [M] drivers/net/ne3210.o
> > CC [M] drivers/net/3c509.o
> > CC [M] drivers/net/depca.o
> > drivers/net/ne3210.c:83: error: irq_map causes a section type conflict
> > drivers/net/ne3210.c:85: error: shmem_map causes a section type conflict
> > drivers/net/ne3210.c:89: error: ifmap_val causes a section type conflict
> > drivers/net/ne3210.c:319: error: ne3210_ids causes a section type conflict
> > make[2]: *** [drivers/net/ne3210.o] Error 1
> > make[2]: *** Waiting for unfinished jobs....
> > drivers/net/hp100.c:198: error: hp100_eisa_tbl causes a section type conflict
> > drivers/net/hp100.c:211: error: hp100_pci_tbl causes a section type conflict
> > make[2]: *** [drivers/net/hp100.o] Error 1
> > drivers/net/depca.c:544: error: de1xx_irq causes a section type conflict
> > drivers/net/depca.c:545: error: de2xx_irq causes a section type conflict
> > drivers/net/depca.c:546: error: de422_irq causes a section type conflict
> [...]
>
> Those three are only used in depca_hw_init() marked __devinit. What compiler
> [flags] do you use to build this?
It's a standard debian one.
jejb@ion> hppa64-linux-gnu-gcc -v
Using built-in specs.
Target: hppa64-linux-gnu
Configured with: ../src/configure --enable-languages=c --prefix=/usr
--libexecdir=/usr/lib --disable-shared --disable-nls --disable-threads
--disable-libffi --disable-libgomp --disable-libmudflap --disable-libssp
--with-as=/usr/bin/hppa64-linux-gnu-as
--with-ld=/usr/bin/hppa64-linux-gnu-ld
--includedir=/usr/hppa64-linux-gnu/include --host=hppa-linux-gnu
--build=hppa-linux-gnu --target=hppa64-linux-gnu
Thread model: single
gcc version 4.2.4 (Debian 4.2.4-6)
the problem is definitely the depca_irq[i] in the loop ... replace that
with a constant and the error goes away.
James
next parent reply other threads:[~2011-05-27 23:04 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1306445993.4048.58.camel@mulgrave.site>
[not found] ` <20110527080728.GA2108@rere.qmqm.pl>
2011-05-27 23:04 ` James Bottomley [this message]
2011-05-28 9:05 ` Section conflict compile failures in net Michał Mirosław
2011-05-31 22:45 ` David Miller
2011-06-01 1:27 ` Michał Mirosław
2011-06-01 2:24 ` David Miller
2011-06-01 1:42 ` James Bottomley
2011-06-01 2:25 ` David Miller
2011-06-18 17:06 ` Michał Mirosław
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1306537477.12244.13.camel@mulgrave.site \
--to=james.bottomley@hansenpartnership.com \
--cc=davem@davemloft.net \
--cc=mirq-linux@rere.qmqm.pl \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).