[patch] fix .text.exit error in dmfe.c

From: Paul Vojta (vojta@Math.Berkeley.EDU)
Date: Tue Jun 25 2002 - 23:18:20 EST


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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Jun 30 2002 - 22:00:10 EST