Skip to contentSkip to conversation

Linker error on via-velocity driver

DISCUSSION Henne 2 participants 2 messages Aug 21, 2006

Subsystems (2)
lore
Share & tools
lore

Henne

author
#0 lore raw

Hi there!

I found a bug in the via-velocity driver, but I cant find a maintainer for that, so I write to the lists. This driver depends on CONFIG_INET (tcp/ip) if CONFIG_PM is enabled.
This is tested on i386 and x86_64.
I'm not familiar with network stuff but I don't believe a device should depend on a protocol. If you are interested to fix it:

make allnoconfig
enable CONFIG_PCI
enable CONFIG_NET
enable CONFIG_NET_ETHERNET
enable CONFIG_NET_PCI
enable CONFIG_VIA_VELOCITY
make

That only happens when CONFIG_PM is enabled. If it's switched off it won't happen.

Greets,
Henne

#1 lore raw

Henne <[email protected]> :
[...]

Quoted 6 lines

I found a bug in the via-velocity driver, but I cant find a maintainer for that, so I write to the lists.
This driver depends on CONFIG_INET (tcp/ip) if CONFIG_PM is enabled. This is tested on i386 and x86_64.
I'm not familiar with network stuff but I don't believe a device should depend on a protocol.

See the comment on top of velocity_get_ip() related to wol and arp.

How does it behave with the patch below:

drivers/net/Kconfig +1 -0
index 3918990..30f21b6 100644
@@ -2173,6 +2173,7 @@ config VIA_VELOCITY
 	select CRC32
 	select CRC_CCITT
 	select MII
+	select INET if PM
 	help
 	  If you have a VIA "Velocity" based network card say Y here.
 
Signature · 1 line
Ueimor