Re: Linux 2.4.21pre3-ac2

From: Adrian Bunk (bunk@fs.tum.de)
Date: Fri Jan 10 2003 - 09:38:25 EST


On Wed, Jan 08, 2003 at 08:39:09PM -0500, Alan Cox wrote:

>...
> Linux 2.4.21pre3-ac2
>...
> o Driver for Aurora Sio16 PCI adapter series (Joachim Martillo)
> (SIO8000P, 16000P, and CPCI)
> | Initial merge
>...

siolx_cleanup in drivers/char/cd1865/cd1865.c is __exit but called from
the __init function siolx_init causing a .text.exit error when compiling
this driver statically into the kernel. The following patch that removes
the __exit fixes it:

--- linux-2.4.20-ac/drivers/char/cd1865/cd1865.c.old 2003-01-10 15:31:41.000000000 +0100
+++ linux-2.4.20-ac/drivers/char/cd1865/cd1865.c 2003-01-10 15:32:26.000000000 +0100
@@ -2630,7 +2630,7 @@
 }
 
 
-static void __exit siolx_cleanup(void)
+static void siolx_cleanup(void)
 {
         siolx_release_drivers();
         siolx_release_memory();

cu
Adrian

-- 

"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

- 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 : Wed Jan 15 2003 - 22:00:33 EST