public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [patch] fix .text.exit error in dmfe.c
@ 2002-06-26  4:18 Paul Vojta
  2002-06-26  9:22 ` Adrian Bunk
  0 siblings, 1 reply; 3+ messages in thread
From: Paul Vojta @ 2002-06-26  4:18 UTC (permalink / raw)
  To: linux-kernel

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-06-26 17:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-26  4:18 [patch] fix .text.exit error in dmfe.c Paul Vojta
2002-06-26  9:22 ` Adrian Bunk
2002-06-26 17:43   ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox