Re: [2.4.17] net/network.o(.text.lock+0x1a88): undefined reference to `local symbols...

From: Tobias Ringstrom (tori@ringstrom.mine.nu)
Date: Sun Dec 23 2001 - 06:11:38 EST


On Sun, 23 Dec 2001, Vasil Kolev wrote:

> # ./reference_discarded.pl
> Finding objects, 538 objects, ignoring 0 module(s)
> Finding conglomerates, ignoring 48 conglomerate(s)
> Scanning objects
> Error: ./drivers/net/dmfe.o .data refers to 00000514 R_386_32
> .text.exit
> Done

Does this patch fix the problem?

/Tobias

--- dmfe.c.orig Fri Nov 23 13:14:17 2001
+++ dmfe.c Sun Dec 23 12:09:25 2001
@@ -527,7 +527,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;
@@ -2059,7 +2059,7 @@
         name: "dmfe",
         id_table: dmfe_pci_tbl,
         probe: dmfe_init_one,
- remove: dmfe_remove_one,
+ remove: __devexit_p(dmfe_remove_one),
 };
 
 MODULE_AUTHOR("Sten Wang, sten_wang@davicom.com.tw");

-
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 Dec 23 2001 - 21:00:29 EST