[PATCH] ServeRAID driver doesn't compile

From: Dave Hansen (haveblue@us.ibm.com)
Date: Wed Jul 17 2002 - 18:23:59 EST


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.

-- 
Dave Hansen
haveblue@us.ibm.com

diff -ur linux-2.5.26-clean/drivers/scsi/ips.c linux-2.5.26/drivers/scsi/ips.c --- linux-2.5.26-clean/drivers/scsi/ips.c Tue Jul 16 16:49:22 2002 +++ linux-2.5.26/drivers/scsi/ips.c Wed Jul 17 16:21:49 2002 @@ -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

- 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 : Tue Jul 23 2002 - 22:00:24 EST