[patch] fix .text.exit errors in orinoco_{pci,plx}.c

From: Adrian Bunk (bunk@fs.tum.de)
Date: Tue Jun 25 2002 - 07:35:50 EST


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

<-- snip -->

...
drivers/net/wireless/wireless_net.o(.data+0x554): undefined reference to
`local symbols in discarded section .text.exit'
drivers/net/wireless/wireless_net.o(.data+0x594): more undefined
references to `local symbols in discarded section .text.exit' follow
...

<-- snip -->

The following patch fixes it (the functions are __devexit but the pointers
to them didn't use __devexit_p):

--- drivers/net/wireless/orinoco_pci.c.old Tue Jun 25 12:48:15 2002
+++ drivers/net/wireless/orinoco_pci.c Tue Jun 25 12:51:11 2002
@@ -364,7 +364,7 @@
         name:"orinoco_pci",
         id_table:orinoco_pci_pci_id_table,
         probe:orinoco_pci_init_one,
- remove:orinoco_pci_remove_one,
+ remove:__devexit_p(orinoco_pci_remove_one),
         suspend:0,
         resume:0
 };
--- drivers/net/wireless/orinoco_plx.c.old Tue Jun 25 12:51:21 2002
+++ drivers/net/wireless/orinoco_plx.c Tue Jun 25 12:51:51 2002
@@ -385,7 +385,7 @@
         name:"orinoco_plx",
         id_table:orinoco_plx_pci_id_table,
         probe:orinoco_plx_init_one,
- remove:orinoco_plx_remove_one,
+ remove:__devexit_p(orinoco_plx_remove_one),
         suspend:0,
         resume:0
 };

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/



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