public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Stephen Williams <gfi8d1h02@sneakemail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] Link problem when CONFIG_NET_MULTI not set
Date: Fri, 16 Apr 2004 09:52:17 -0700	[thread overview]
Message-ID: <17034-97771@sneakemail.com> (raw)


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 

             reply	other threads:[~2004-04-16 16:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-16 16:52 Stephen Williams [this message]
2004-04-18 22:52 ` [U-Boot-Users] Link problem when CONFIG_NET_MULTI not set Wolfgang Denk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=17034-97771@sneakemail.com \
    --to=gfi8d1h02@sneakemail.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox