* [U-Boot-Users] Link problem when CONFIG_NET_MULTI not set
@ 2004-04-16 16:52 Stephen Williams
2004-04-18 22:52 ` Wolfgang Denk
0 siblings, 1 reply; 2+ messages in thread
From: Stephen Williams @ 2004-04-16 16:52 UTC (permalink / raw)
To: u-boot
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* [U-Boot-Users] Link problem when CONFIG_NET_MULTI not set
2004-04-16 16:52 [U-Boot-Users] Link problem when CONFIG_NET_MULTI not set Stephen Williams
@ 2004-04-18 22:52 ` Wolfgang Denk
0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Denk @ 2004-04-18 22:52 UTC (permalink / raw)
To: u-boot
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
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de
The idea of male and female are universal constants.
-- Kirk, "Metamorphosis", stardate 3219.8
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-04-18 22:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-16 16:52 [U-Boot-Users] Link problem when CONFIG_NET_MULTI not set Stephen Williams
2004-04-18 22:52 ` Wolfgang Denk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox