public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
From: David Mosberger <davidm@napali.hpl.hp.com>
To: linux-ia64@vger.kernel.org
Subject: RE: Link error with linux-2.5 bk
Date: Wed, 21 Jan 2004 17:42:58 +0000	[thread overview]
Message-ID: <16398.47650.781288.428834@napali.hpl.hp.com> (raw)
In-Reply-To: <20040120144809.GT27591@localhost>

>>>>> On Wed, 21 Jan 2004 08:55:19 -0800, "Luck, Tony" <tony.luck@intel.com> said:

  >> LD      .tmp_vmlinux1
  >> local symbol 0: discarded in section `.exit.text' from drivers/built-in.o

  Tony> My money is on this change to drivers/net/dummy.c (clipped from diff
  Tony> between bk3 and bk4 trees).  "dummy_free_one()" is marked as __exit (so
  Tony> we'll try to discard it), but it is called by dummy_init_module().

  Tony> Dropping the "__exit" will fix it (but there may be other
  Tony> fixes).  Copying Andi Kleen, as according to BitKeeper he
  Tony> appears to be the author of this change.

Andrew sent me the attached.  He seems to agree with your analysis & fix.

	--david

----------------------------------------------
From: Andrew Morton <akpm@osdl.org>
To: David Mosberger <davidm@linux.hpl.hp.com>
Subject: Fw: dummy.c: __exit section fix
Date: Wed, 21 Jan 2004 01:56:43 -0800


fyi...

Begin forwarded message:

Date: Wed, 21 Jan 2004 01:52:08 -0800
From: Andrew Morton <akpm@osdl.org>
To: "David S. Miller" <davem@redhat.com>
Subject: dummy.c: __exit section fix




dummy_free_one() is marked __exit, but is called from dummy_init_module()
which is marked __init.

It's wrong, and doesn't link on ia64.


---

 25-akpm/drivers/net/dummy.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -puN drivers/net/dummy.c~dummy-init-fix drivers/net/dummy.c
--- 25/drivers/net/dummy.c~dummy-init-fix	Wed Jan 21 04:13:42 2004
+++ 25-akpm/drivers/net/dummy.c	Wed Jan 21 04:13:42 2004
@@ -112,7 +112,7 @@ static int __init dummy_init_one(int ind
 	return err;
 }
 
-static void __exit dummy_free_one(int index) 
+static void dummy_free_one(int index)
 {
 	unregister_netdev(dummies[index]);
 	free_netdev(dummies[index]);

_

  parent reply	other threads:[~2004-01-21 17:42 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-20 14:48 Link error with linux-2.5 bk Martin Hicks
2004-01-20 21:09 ` Darren Williams
2004-01-21 16:55 ` Luck, Tony
2004-01-21 17:20 ` Andi Kleen
2004-01-21 17:42 ` David Mosberger [this message]
2004-01-21 17:57 ` Randy.Dunlap
2004-01-21 17:57 ` Luck, Tony
2004-01-21 18:01 ` David Mosberger
2004-01-21 18:11 ` Andi Kleen

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=16398.47650.781288.428834@napali.hpl.hp.com \
    --to=davidm@napali.hpl.hp.com \
    --cc=linux-ia64@vger.kernel.org \
    /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