]> git.baikalelectronics.ru Git - kernel.git/commit
module: put modversions in vermagic
authorRusty Russell <rusty@rustcorp.com.au>
Fri, 9 May 2008 06:23:17 +0000 (16:23 +1000)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 9 May 2008 14:45:18 +0000 (07:45 -0700)
commit66e4f602aa91cc17ee66bf9e3d35e6e23b771994
treee182a3b98b0d659787780b1c6ae7a22d264b5c5e
parentac0b036fc6035239b82ba2563c5c05bb21f4be5a
module: put modversions in vermagic

Don't allow a module built without versions altogether to be inserted
into a kernel which expects modversions.

modprobe --force will strip vermagic as well as modversions, so it
won't be effected, but this will make sure that a
non-CONFIG_MODVERSIONS module won't be accidentally inserted into a
CONFIG_MODVERSIONS kernel.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/vermagic.h