Click to See Complete Forum and Search --> : Driver loaded by all 2.2.x kernels


shanthi_arunbose
11-03-2001, 01:51 AM
Hi,
I've made a dummy driver in 2.2.12 kernel and an made an rpm to install it. When I try to install the rpm in some upper kernels, say 2.2.14, I get a warning that the driver module was built in a lower kernel. If I force the installation, the dummy driver works as expected.

What should I do to avoid this warning?

furrycat
11-04-2001, 09:34 PM
Make an RPM with the source code and an install script that compiles it.

The warning is there for a reason...

shanthi_arunbose
11-05-2001, 03:23 AM
Hi
Thanks for your reply. What I need to do to suppress the warning, if I'm not interested in providing the source?

furrycat
11-08-2001, 09:44 PM
You can't suppress the warning. It is emitted by the kernel when you try to load a potentially incompatible module.

Like I said, it is there for a reason.

If you don't want to distribute your source you can follow the strategy adopted by nVidia and many others:

Compile all your module's functions into an object file and distribute the source to a wrapper that links against the .o file. The user compiles the module on his own system, thus avoiding version mismatches but all the real work is done in your library, whose source is not disclosed.