[U-Boot-Users] Link problem when CONFIG_NET_MULTI not set

The latest CVS doesn't link if CONFIG_NET_MULTI is *not* set. The problem is NetLoop calls eth_set_current() unconditionally, but the implementation of that function (in net/eth.c) is not included if CONFIG_NET_MULTI is undefined.
The attached patch fixes NetLoop to not use eth_set_current if CONFIG_NET_MULTI is not included. I presume that the function is compiled to save space and is really not needed in this case.
CHANGELOG ENTRY:
* Patch by Stephen Williams, 16 April 2004: link of eth_set_current fails when CONFIG_NET_MULTI not used.

In message 17034-97771@sneakemail.com you wrote:
The latest CVS doesn't link if CONFIG_NET_MULTI is *not* set. The problem is NetLoop calls eth_set_current() unconditionally, but the implementation of that function (in net/eth.c) is not included if CONFIG_NET_MULTI is undefined.
The attached patch fixes NetLoop to not use eth_set_current if CONFIG_NET_MULTI is not included. I presume that the function is compiled to save space and is really not needed in this case.
Already fixed in current CVS. Patch ignored.
Best regards,
Wolfgang Denk
participants (2)
-
Stephen Williams
-
Wolfgang Denk