public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Paul Vojta <vojta@Math.Berkeley.EDU>
To: linux-kernel@vger.kernel.org
Subject: [patch] fix .text.exit error in dmfe.c
Date: Tue, 25 Jun 2002 21:18:20 -0700 (PDT)	[thread overview]
Message-ID: <200206260418.VAA10648@blue3.math.Berkeley.EDU> (raw)

Folks:

When I compile dmfe.o statically into the 2.5.24 kernel, I get:

drivers/built-in.o(.data+0xba34): undefined reference to `local symbols in discarded section .text.exit'

The following patch seems to fix the problem:

--- drivers/net/tulip/dmfe.c	Thu Jun 20 15:53:56 2002
+++ drivers/net/tulip/dmfe.c.new	Tue Jun 25 20:50:57 2002
@@ -461,7 +461,7 @@
 }
 
 
-static void __exit dmfe_remove_one (struct pci_dev *pdev)
+static void __devexit dmfe_remove_one (struct pci_dev *pdev)
 {
 	struct net_device *dev = pci_get_drvdata(pdev);
 	struct dmfe_board_info *db = dev->priv;


I'm not (usually) a kernel hacker; I'm just mimicking what others are doing
to fix similar errors.  However, it is working for me right now.

--Paul Vojta, vojta@math.berkeley.edu

             reply	other threads:[~2002-06-26  4:18 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-26  4:18 Paul Vojta [this message]
2002-06-26  9:22 ` [patch] fix .text.exit error in dmfe.c Adrian Bunk
2002-06-26 17:43   ` Greg KH

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=200206260418.VAA10648@blue3.math.Berkeley.EDU \
    --to=vojta@math.berkeley.edu \
    --cc=linux-kernel@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