Chinaunix

标题: 怎样给修改过的模块加一个版本(version) [打印本页]

作者: a_rice    时间: 2009-11-24 16:17
标题: 怎样给修改过的模块加一个版本(version)
自己修改了一个模块(8021q),重新编译后用起来也没有问题

但是每次载入这个模块的时候都会提示:
8021q:no version for "struct_module" found:kernel tainted.

有什么办法可以不让这句话出来吗???
作者: openspace    时间: 2009-11-24 16:55
“struct_module”还是“struct module”
作者: a_rice    时间: 2009-11-24 17:01
是"struct_module"
作者: liying_gg    时间: 2009-11-24 17:34
/* Version of form [<epoch>:]<version>[-<extra-version>].
   Or for CVS/RCS ID version, everything but the number is stripped.
  <epoch>: A (small) unsigned integer which allows you to start versions
           anew. If not mentioned, it's zero.  eg. "2:1.0" is after
           "1:2.0".
  <version>: The <version> may contain only alphanumerics and the
           character `.'.  Ordered by numeric sort for numeric parts,
           ascii sort for ascii parts (as per RPM or DEB algorithm).
  <extraversion>: Like <version>, but inserted for local
           customizations, eg "rh3" or "rusty1".

  Using this automatically adds a checksum of the .c files and the
  local headers in "srcversion".
*/
#define MODULE_VERSION(_version) MODULE_INFO(version, _version)

[ 本帖最后由 liying_gg 于 2009-11-24 17:41 编辑 ]
作者: albcamus    时间: 2009-11-25 00:17
re-compile this module against your *target* kernel.
作者: a_rice    时间: 2009-11-30 13:16
谢谢各位,我把整个内核重新编译了一下再用就好了




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2