WARNING: drivers/net/ethernet/dlink/sundance.o(.text+0x2e87): Section mismatch in reference from the function sundance_probe1() to the variable .devinit.rodata:sundance_pci_tbl

5 messages, 4 authors, 2012-12-06 · open the first message on its own page

WARNING: drivers/net/ethernet/dlink/sundance.o(.text+0x2e87): Section mismatch in reference from the function sundance_probe1() to the variable .devinit.rodata:sundance_pci_tbl

From: kbuild test robot <hidden>
Date: 2012-12-04 22:24:34

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git master
head:   193c1e478cc496844fcbef402a10976c95a634ff
commit: 64bc40de134bb5c7826ff384016f654219ed3956 dlink: remove __dev* attributes
date:   27 hours ago
config: make ARCH=x86_64 allmodconfig

All warnings:

WARNING: drivers/net/ethernet/dlink/sundance.o(.text+0x2e87): Section mismatch in reference from the function sundance_probe1() to the variable .devinit.rodata:sundance_pci_tbl
The function sundance_probe1() references
the variable __devinitconst sundance_pci_tbl.
This is often because sundance_probe1 lacks a __devinitconst
annotation or the annotation of sundance_pci_tbl is wrong.

---
0-DAY kernel build testing backend         Open Source Technology Center
Fengguang Wu, Yuanhan Liu                              Intel Corporation

Re: WARNING: drivers/net/ethernet/dlink/sundance.o(.text+0x2e87): Section mismatch in reference from the function sundance_probe1() to the variable .devinit.rodata:sundance_pci_tbl

From: Denis Kirjanov <hidden>
Date: 2012-12-05 08:12:33

I"ll fix it.

Thanks.

On 12/5/12, kbuild test robot [off-list ref] wrote:
tree:   git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git
master
head:   193c1e478cc496844fcbef402a10976c95a634ff
commit: 64bc40de134bb5c7826ff384016f654219ed3956 dlink: remove __dev*
attributes
date:   27 hours ago
config: make ARCH=x86_64 allmodconfig

All warnings:

WARNING: drivers/net/ethernet/dlink/sundance.o(.text+0x2e87): Section
mismatch in reference from the function sundance_probe1() to the variable
.devinit.rodata:sundance_pci_tbl
The function sundance_probe1() references
the variable __devinitconst sundance_pci_tbl.
This is often because sundance_probe1 lacks a __devinitconst
annotation or the annotation of sundance_pci_tbl is wrong.

---
0-DAY kernel build testing backend         Open Source Technology Center
Fengguang Wu, Yuanhan Liu                              Intel Corporation
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Re: WARNING: drivers/net/ethernet/dlink/sundance.o(.text+0x2e87): Section mismatch in reference from the function sundance_probe1() to the variable .devinit.rodata:sundance_pci_tbl

From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Date: 2012-12-05 15:30:19

On Wed, Dec 05, 2012 at 11:12:32AM +0300, Denis Kirjanov wrote:
I"ll fix it.

Thanks.

On 12/5/12, kbuild test robot [off-list ref] wrote:
quoted
tree:   git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git
master
head:   193c1e478cc496844fcbef402a10976c95a634ff
commit: 64bc40de134bb5c7826ff384016f654219ed3956 dlink: remove __dev*
attributes
date:   27 hours ago
config: make ARCH=x86_64 allmodconfig

All warnings:

WARNING: drivers/net/ethernet/dlink/sundance.o(.text+0x2e87): Section
mismatch in reference from the function sundance_probe1() to the variable
.devinit.rodata:sundance_pci_tbl
The function sundance_probe1() references
the variable __devinitconst sundance_pci_tbl.
This is often because sundance_probe1 lacks a __devinitconst
annotation or the annotation of sundance_pci_tbl is wrong.

No, no need to do this, it's fallout of the big dev* removal that is in
net-next right now, the warnings will go away when merged with my
driver-core-next tree which will happen in 3.8-rc1.

So please don't worry about it, it's a harmless message at the moment.

greg k-h

Re: WARNING: drivers/net/ethernet/dlink/sundance.o(.text+0x2e87): Section mismatch in reference from the function sundance_probe1() to the variable .devinit.rodata:sundance_pci_tbl

From: David Miller <davem@davemloft.net>
Date: 2012-12-05 17:50:10

From: Denis Kirjanov <redacted>
Date: Wed, 5 Dec 2012 11:12:32 +0300
I"ll fix it.
You can't.

It's only going to get fixed by a change in Greg KH's device tree
which updates the PCI table macros to not use __dev* section tags.

Fengguant, _PLEASE_, as Greg requested, stop reporting these section
mismatch errors, they aren't helpful and are wasting valuable
developer time.

Re: WARNING: drivers/net/ethernet/dlink/sundance.o(.text+0x2e87): Section mismatch in reference from the function sundance_probe1() to the variable .devinit.rodata:sundance_pci_tbl

From: Fengguang Wu <hidden>
Date: 2012-12-06 02:17:46

On Wed, Dec 05, 2012 at 12:50:06PM -0500, David Miller wrote:
From: Denis Kirjanov <redacted>
Date: Wed, 5 Dec 2012 11:12:32 +0300
quoted
I"ll fix it.
You can't.

It's only going to get fixed by a change in Greg KH's device tree
which updates the PCI table macros to not use __dev* section tags.

Fengguant, _PLEASE_, as Greg requested, stop reporting these section
mismatch errors, they aren't helpful and are wasting valuable
developer time.
Dave, Greg: Sorry for the delay! I've just disabled these section
mismatch warnings against *devinit*.

Thanks,
Fengguang
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help