FC 5 and kernel module problems
Neil Cherry
ncherry at comcast.net
Sat Apr 8 19:56:17 UTC 2006
Dave Jones wrote:
> On Sat, Apr 08, 2006 at 03:39:50PM -0400, Neil Cherry wrote:
> > I'm starting to see a lot of problems with kernel modules and
> > gcc 4.1.0-3. I'm running 2.6.15-1.2054_FC5 and I have several
> > kernel modules that I need to add (some part of the kernel and
> > some not). An example is a Moxa 8 port serial card (mxser.ko).
> > If I try to load it I get:
> >
> > mxser: falsely claims to have parameter verbose
> >
> > If I look at the source code verbose is defined. In fact to get
> > the module to behave I have to add to one of the functions
> > (usually I add it to the init function) something like this:
> >
> > if(verbose != 0 || verbose != 1) {
> > verbose = 0;
> > }
> >
> > Note that I haven't add a declaration but that takes care of the
> > gcc optimization from removing the verbose variable.
> >
> > Anyone have an idea what's going on?
>
> convert the modules to use the 'new' module interface
> (module_param and friends instead of MODULE_PARM) and this
> problem goes away.
Thanks, now I have an answer and I guess I'll submit my patches
to the kernel folks. That'll be a first. :-)
--
Linux Home Automation Neil Cherry ncherry at linuxha.com
http://www.linuxha.com/ Main site
http://linuxha.blogspot.com/ My HA Blog
http://home.comcast.net/~ncherry/ Backup site
More information about the users
mailing list