Skip to contentSkip to conversation

ServeRAID driver doesn't compile

PATCH New Dave Hansen 1 participant 1 message Jul 17, 2002

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

PATCH 1/1 ServeRAID driver doesn't compile

In 2.5.26, the ServeRAID driver still doesn't compile correctly, you get these from the vmlinux link operation:

drivers/built-in.o(.data+0xc4f4): undefined reference to local symbols in discarded section .text.exit' drivers/built-in.o(.data+0xc574): undefined reference to local symbols in discarded section .text.exit' drivers/built-in.o(.data+0xc5f4): undefined reference to `local symbols in discarded section .text.exit'

This patch makes them go away and appears to be the correct fix.

Signature · 2 lines
Dave Hansen
[email protected]
drivers/scsi/ips.c +3 -3
diff -ur linux-2.5.26-clean/drivers/scsi/ips.c linux-2.5.26/drivers/scsi/ips.c
@@ -326,21 +326,21 @@
        name:		ips_hot_plug_name,
        id_table:	ips_pci_table,
        probe:		ips_insert_device,
-       remove:		ips_remove_device,
+       remove:		__devexit_p(ips_remove_device),
    }; 
            
    struct pci_driver ips_pci_driver_5i = {
        name:		ips_hot_plug_name,
        id_table:	ips_pci_table_5i,
        probe:		ips_insert_device,
-       remove:		ips_remove_device,
+       remove:		__devexit_p(ips_remove_device),
    };
 
    struct pci_driver ips_pci_driver_i960 = {
        name:		ips_hot_plug_name,
        id_table:	ips_pci_table_i960,
        probe:		ips_insert_device,
-       remove:		ips_remove_device,
+       remove:		__devexit_p(ips_remove_device),
    };
 
 #endif