Commit 0e44d4c5 authored by Richard Henderson's avatar Richard Henderson Committed by Linus Torvalds

[PATCH] discarded section problem

What should be happening with the references to the discarded .text.exit
section?  I see a __devexit_p mentioned in Documentation/pci.txt, but it
hasn't been implemented except for down inside ieee1394.

In any case, I need something like the following in order to build with
pre-release binutils 2.12.  If this sort of thing is acceptible I can
prepare a more comprehensive patch.
parent 42e2eb36
......@@ -4912,7 +4912,7 @@ MODULE_DEVICE_TABLE(pci, serial_pci_tbl);
static struct pci_driver serial_pci_driver = {
name: "serial",
probe: serial_init_one,
remove: serial_remove_one,
remove: __devexit_p(serial_remove_one),
id_table: serial_pci_tbl,
};
......
......@@ -1762,7 +1762,7 @@ static struct pci_driver tulip_driver = {
name: DRV_NAME,
id_table: tulip_pci_tbl,
probe: tulip_init_one,
remove: tulip_remove_one,
remove: __devexit_p(tulip_remove_one),
#ifdef CONFIG_PM
suspend: tulip_suspend,
resume: tulip_resume,
......
......@@ -174,11 +174,13 @@ typedef void (*__cleanup_module_func_t)(void);
#define __devinitdata
#define __devexit
#define __devexitdata
#define __devexit_p(x) &(x)
#else
#define __devinit __init
#define __devinitdata __initdata
#define __devexit __exit
#define __devexitdata __exitdata
#define __devexit_p(x) 0
#endif
#endif /* _LINUX_INIT_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment