lkml.org 
[lkml]   [2002]   [Jun]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[patch] fix .text.exit error in mtd/maps/pci.c

The following error occured at the final linking of 2.4.19-rc1:

<-- snip -->

...
drivers/mtd/mtdlink.o(.data+0x934): undefined reference to `local
symbols in discarded section .text.exit'
...

<-- snip -->


The following patch fixes it (mtd_pci_remove is __devexit but the pointer
to it didn't use __devexit_p):


--- drivers/mtd/maps/pci.c.old Tue Jun 25 15:26:49 2002
+++ drivers/mtd/maps/pci.c Tue Jun 25 15:27:25 2002
@@ -361,7 +361,7 @@
static struct pci_driver mtd_pci_driver = {
name: "MTD PCI",
probe: mtd_pci_probe,
- remove: mtd_pci_remove,
+ remove: __devexit_p(mtd_pci_remove),
id_table: mtd_pci_ids,
};

cu
Adrian

--

You only think this is a free country. Like the US the UK spends a lot of
time explaining its a free country because its a police state.
Alan Cox

-
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/

\
 
 \ /
  Last update: 2005-03-22 13:22    [W:0.030 / U:0.416 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site