Skip to contentSkip to conversation

module mismatch

DISCUSSION zhonglei 2 participants 2 messages May 20, 2005

lore
Share & tools
lore

zhonglei

author
#0 lore raw

when I use "insmod -f hello.o" in my Embeded linux,the warning appears:
Warning: Kernel-module version mismatch
hello.o was compiled for kernel version 2.4.24-per2
while this kernel is version 2.4.25
Warning: loading hello.o will taint the kernel: forced load
see http://www.tux.org/lkml/#export-tainted for information about tainted modules

Is there any problem on my using my module function with this warning?

#1 lore raw
Quoted 8 lines · zhonglei

when I use "insmod -f hello.o" in my Embeded linux,the warning appears:
Warning: Kernel-module version mismatch
hello.o was compiled for kernel version 2.4.24-per2
while this kernel is version 2.4.25
Warning: loading hello.o will taint the kernel: forced load
see http://www.tux.org/lkml/#export-tainted for information about tainted modules

Is there any problem on my using my module function with this warning?

Yes, there is. Your running kernel differs from that one which you compiled the module sources with. Linux' internal interfaces and data structures change every now and then, which will result in different offsets, wrong functions called and the like. You'd *always* compile a module exactly with the same sources, compiler and .config file to match the kernel to which you want to load the module.

MfG, JBG

Signature · 4 lines
Jan-Benedict Glaw       [email protected]    . +49-172-7608481             _ O _
"Eine Freie Meinung in  einem Freien Kopf    | Gegen Zensur | Gegen Krieg  _ _ O
 fuer einen Freien Staat voll Freier Bürger" | im Internet! |   im Irak!   O O O
ret = do_actions((curr | FREE_SPEECH) & ~(NEW_COPYRIGHT_LAW | DRM | TCPA));