lkml.org 
[lkml]   [2003]   [Jan]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: 2.5.55: static compilation of mxser.c doesn't work
On Fri, Jan 10, 2003 at 03:12:43PM +0000, Alan Cox wrote:
> On Fri, 2003-01-10 at 14:03, Adrian Bunk wrote:
> > Hi Arnaldo,
> >
> > the 2.5 Linux kernel contains your patch
> >
> > o mxser: add module_exit/module_init
> > This fixes the compilation problem in 2.5
> >
> > This patch renames mxser_init to mxser_module_init causing a compile
> > error when trying to compile this driver statically into the kernel
> > since mxser_init is still called from drivers/char/tty_io.c.
>
> You should be able to kill the call from tty_io.c

Unfortunately I don't have the hardware to test whether the driver
actually works but the patch below fixes the compilation.

cu
Adrian

--- linux-2.5.56/drivers/char/tty_io.c.old 2003-01-12 10:15:39.000000000 +0100
+++ linux-2.5.56/drivers/char/tty_io.c 2003-01-12 10:16:14.000000000 +0100
@@ -2372,9 +2372,6 @@
rs_8xx_init();
#endif /* CONFIG_8xx */
pty_init();
-#ifdef CONFIG_MOXA_SMARTIO
- mxser_init();
-#endif
#ifdef CONFIG_MOXA_INTELLIO
moxa_init();
#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/
\
 
 \ /
  Last update: 2005-03-22 13:32    [W:0.048 / U:1.556 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site