[PATCH] ServeRAID driver doesn't compile

Dave Hansen (haveblue@us.ibm.com)
Wed, 17 Jul 2002 16:23:59 -0700


This is a multi-part message in MIME format.
--------------010405030806090902050809
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

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

--------------010405030806090902050809 Content-Type: text/plain; name="ips-compile-fix-2.5.26-1.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="ips-compile-fix-2.5.26-1.patch"

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

--------------010405030806090902050809--

- 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/