From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Williams Date: Fri, 16 Apr 2004 09:52:17 -0700 Subject: [U-Boot-Users] Link problem when CONFIG_NET_MULTI not set Message-ID: <17034-97771@sneakemail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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. -- Steve Williams "The woods are lovely, dark and deep. steve at XXXXXXXXXX But I have promises to keep, http://www.XXXXXXXXXX and lines to code before I sleep, http://www.picturel.com And lines to code before I sleep." -------------- next part -------------- A non-text attachment was scrubbed... Name: u-boot-set_current_missing.patch.gz Type: application/x-gzip Size: 308 bytes Desc: not available Url : http://lists.denx.de/pipermail/u-boot/attachments/20040416/d4622dcd/attachment.bin