net/hp-plus: fix link errors
Subsystems (2)
PATCH 1/1 net/hp-plus: fix link errors
From: Randy Dunlap <[email protected]>
Fix hp-plus driver link errors.
Builds as loadable module and kernel image driver. All drivers that use 8390.o or 8390p.o that will build on i386 with MCA/PCI/EISA/ISA were built successfully both =m and =y.
drivers/built-in.o: In function `hpp_open':
hp-plus.c:(.text+0xac06c): undefined reference to eip_interrupt' hp-plus.c:(.text+0xac0d7): undefined reference to eip_open' drivers/built-in.o: In function `hpp_close':
hp-plus.c:(.text+0xac1bb): undefined reference to eip_close' drivers/built-in.o: In function hpp_probe1':
hp-plus.c:(.init.text+0xa98a): undefined reference to NS8390p_init' drivers/built-in.o: In function hp_plus_probe':
(.init.text+0xa9fe): undefined reference to `__alloc_eip_netdev'
--- drivers/net/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/Makefile +1 -1
@@ -113,7 +113,7 @@ obj-$(CONFIG_EL2) += 3c503.o 8390p.o obj-$(CONFIG_NE2000) += ne.o 8390p.o obj-$(CONFIG_NE2_MCA) += ne2.o 8390p.o obj-$(CONFIG_HPLAN) += hp.o 8390p.o -obj-$(CONFIG_HPLAN_PLUS) += hp-plus.o 8390.o +obj-$(CONFIG_HPLAN_PLUS) += hp-plus.o 8390p.o obj-$(CONFIG_ULTRA) += smc-ultra.o 8390.o obj-$(CONFIG_ULTRAMCA) += smc-mca.o 8390.o obj-$(CONFIG_ULTRA32) += smc-ultra32.o 8390.o
From: Randy Dunlap <[email protected]>
Date: Thu, 20 Nov 2008 21:17:24 -0800
Quoted 16 lines
Fix hp-plus driver link errors.
Builds as loadable module and kernel image driver. All drivers that use 8390.o or 8390p.o that will build on i386 with MCA/PCI/EISA/ISA were built successfully both =m and =y.
drivers/built-in.o: In function `hpp_open':
hp-plus.c:(.text+0xac06c): undefined reference toeip_interrupt' hp-plus.c:(.text+0xac0d7): undefined reference toeip_open'drivers/built-in.o: In function `hpp_close':
hp-plus.c:(.text+0xac1bb): undefined reference toeip_close' drivers/built-in.o: In functionhpp_probe1':
hp-plus.c:(.init.text+0xa98a): undefined reference toNS8390p_init' drivers/built-in.o: In functionhp_plus_probe':
(.init.text+0xa9fe): undefined reference to `__alloc_eip_netdev'
Quoted 1 line
Signed-off-by Randy Dunlap <[email protected]>
Applied, thanks Randy.
Quoted 19 lines · On Fri, 21 Nov 2008 16:33:35 -0800 (PST) David Miller wrote:
From: Randy Dunlap <[email protected]>
Date: Thu, 20 Nov 2008 21:17:24 -0800Quoted 16 lines
Fix hp-plus driver link errors.
Builds as loadable module and kernel image driver. All drivers that use 8390.o or 8390p.o that will build on i386 with MCA/PCI/EISA/ISA were built successfully both =m and =y.
drivers/built-in.o: In function `hpp_open':
hp-plus.c:(.text+0xac06c): undefined reference toeip_interrupt' hp-plus.c:(.text+0xac0d7): undefined reference toeip_open'drivers/built-in.o: In function `hpp_close':
hp-plus.c:(.text+0xac1bb): undefined reference toeip_close' drivers/built-in.o: In functionhpp_probe1':
hp-plus.c:(.init.text+0xa98a): undefined reference toNS8390p_init' drivers/built-in.o: In functionhp_plus_probe':
(.init.text+0xa9fe): undefined reference to `__alloc_eip_netdev'
Quoted 4 lines
Quoted 1 line
Signed-off-by Randy Dunlap <[email protected]>Applied, thanks Randy.
--
Dave,
I'm seeing build problems (still/again) in linux-next like
WARNING: drivers/net/8390p: 'ei_set_multicast_list' exported twice. Previous export was in drivers/net/8390.ko
WARNING: drivers/net/8390p: 'ei_get_stats' exported twice. Previous export was in drivers/net/8390.ko
WARNING: drivers/net/8390p: 'ei_start_xmit' exported twice. Previous export was in drivers/net/8390.ko
WARNING: drivers/net/8390p: 'ei_tx_timeout' exported twice. Previous export was in drivers/net/8390.ko
and
build-r6464.out:(.text+0x1050): multiple definition of ei_get_stats' build-r6464.out:(.text+0x1150): multiple definition of ei_start_xmit' build-r6464.out:(.text+0xef0): multiple definition of ei_tx_timeout' build-r6464.out:(.text+0x1100): multiple definition of ei_set_multicast_list'
which I guess (have not yet verified) are caused by this ($subject) patch.
You might want to drop/revert it until I see what's going on.
---
~Randy
Quoted 4 lines
WARNING:
drivers/net/8390p: 'ei_set_multicast_list' exported twice. Previous export was indrivers/net/8390.ko
WARNING:drivers/net/8390p: 'ei_get_stats' exported twice. Previous export was indrivers/net/8390.ko
WARNING:drivers/net/8390p: 'ei_start_xmit' exported twice. Previous export was indrivers/net/8390.ko
WARNING:drivers/net/8390p: 'ei_tx_timeout' exported twice. Previous export was indrivers/net/8390.ko
bash-3.2$ grep ei_set_multicast drivers/net/*c bash-3.2$ grep ei_set_multicast drivers/net/*h bash-3.2$ grep ei_set_multicast include/linux/*h bash-3.2$
bash-3.2$ nm drivers/net/*o|grep ei_set_mu
nm: Warning: 'drivers/net/chelsio' is not an ordinary file
nm: Warning: 'drivers/net/hamradio' is not an ordinary file
Confused of South Wales
David Miller
maintainerFrom: Alan Cox <[email protected]>
Date: Tue, 25 Nov 2008 18:18:00 +0000
Quoted 9 lines
Quoted 4 lines
WARNING:
drivers/net/8390p: 'ei_set_multicast_list' exported twice. Previous export was indrivers/net/8390.ko
WARNING:drivers/net/8390p: 'ei_get_stats' exported twice. Previous export was indrivers/net/8390.ko
WARNING:drivers/net/8390p: 'ei_start_xmit' exported twice. Previous export was indrivers/net/8390.ko
WARNING:drivers/net/8390p: 'ei_tx_timeout' exported twice. Previous export was indrivers/net/8390.kobash-3.2$ grep
ei_set_multicastdrivers/net/*c
bash-3.2$ grepei_set_multicastdrivers/net/*h
bash-3.2$ grepei_set_multicastinclude/linux/*h
bash-3.2$
Wrong tree.
We added code that splits the struct netdev function pointers out into a seperate structure. In order to make initialization of the netdev_ops members work inside of the driver (and keep it const), we exported some of these 8390 library symbols.
Anyways, Stephen you have to do something about this.
Quoted 4 lines
We added code that splits the struct netdev function pointers out into a seperate structure. In order to make initialization of the
netdev_opsmembers work inside of the driver (and keep it const), we exported some of these 8390 library symbols.
Then probably they want __ sticking in front of them and wrapping in 8390.c and 8390p.c which is how the other symbols were done.
Alan
Quoted 9 lines · On Tue, 25 Nov 2008 22:13:28 +0000 Alan Cox <[email protected]> wrote:
Quoted 4 lines
We added code that splits the struct netdev function pointers out into a seperate structure. In order to make initialization of the
netdev_opsmembers work inside of the driver (and keep it const), we exported some of these 8390 library symbols.Then probably they want __ sticking in front of them and wrapping in 8390.c and
8390p.cwhich is how the other symbols were done.Alan
Actually, all the 8390 based drivers need to get converted to netdev_ops then it will be fixed.