Skip to contentSkip to conversation

fix .text.exit error in sonypi.c

PATCH In review Adrian Bunk 2 participants 2 messages Mar 27, 2003 – Mar 30, 2003

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix .text.exit error in sonypi.c

The following .text.exit error is present in 2.4.1-pre6 (it seems to be in 2.5.66, too):

<-- snip -->

...
drivers/char/char.o(.text+0x9a891): In function `sonypi_pm_callback':
: undefined reference to local symbols in discarded section .text.exit' drivers/char/char.o(.text+0x9a898): In function sonypi_pm_callback':
: undefined reference to `local symbols in discarded section .text.exit'
...

<-- snip -->

In drivers/char/sonypi.c the __devexit funcitions sonypi_type1_dis and sonypi_type2_dis are called from the non-__devexit function sonypi_pm_callback.

The following patch removes the __devexit from these two functions:

drivers/char/sonypi.c renamed from drivers/char/sonypi.c.old +2 -2
@@ -162,7 +162,7 @@
 }
 
 /* Disables the device - this comes from the AML code in the ACPI bios */
-static void __devexit sonypi_type1_dis(void) {
+static void sonypi_type1_dis(void) {
 	u32 v;
 
 	pci_read_config_dword(sonypi_device.dev, SONYPI_G10A, &v);
@@ -174,7 +174,7 @@
 	outl(v, SONYPI_IRQ_PORT);
 }
 
-static void __devexit sonypi_type2_dis(void) {
+static void sonypi_type2_dis(void) {
 	if (ec_write(SONYPI_SHIB, 0))
 		printk(KERN_WARNING "ec_write failed\n");
 	if (ec_write(SONYPI_SLOB, 0))

I've tested the compilation with 2.4.21-pre6.

Please apply
Adrian

Signature · 4 lines
       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed
#1 lore raw
Quoted 2 lines · Adrian Bunk

The following .text.exit error is present in 2.4.1-pre6 (it seems to be in 2.5.66, too):

[...]

Thanks Adrian, I'll be sending this fix along with other modifications in my tree to Marcelo and Linus in a minute or two.

Stelian.

Signature · 1 line
Stelian Pop <[email protected]>