2.5.55: static compilation of mxser.c doesn't work
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.
cu
Adrian
Signature · 4 lines
"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 SeedQuoted 10 lines · Adrian Bunk
Hi Arnaldo,
the 2.5 Linux kernel contains your patch
o mxser: add module_exit/module_init
This fixes the compilation problem in 2.5This patch renames
mxser_inittomxser_module_initcausing a compile error when trying to compile this driver statically into the kernel sincemxser_initis still called fromdrivers/char/tty_io.c.
You should be able to kill the call from tty_io.c
Quoted 5 lines · Alan Cox
Quoted 4 lines · Adrian Bunk
Hi Arnaldo,
the 2.5 Linux kernel contains your patch
Quoted 8 lines
Quoted 6 lines
o mxser: add module_exit/module_init
This fixes the compilation problem in 2.5This patch renames
mxser_inittomxser_module_initcausing a compile error when trying to compile this driver statically into the kernel sincemxser_initis still called fromdrivers/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
drivers/char/tty_io.c renamed from drivers/char/tty_io.c.old +0 -3
@@ -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