免费注册 查看新帖 |

Chinaunix

广告
  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1649 | 回复: 5
打印 上一主题 下一主题

怎样给修改过的模块加一个版本(version) [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-11-24 16:17 |只看该作者 |倒序浏览
自己修改了一个模块(8021q),重新编译后用起来也没有问题

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

有什么办法可以不让这句话出来吗???

论坛徽章:
1
天蝎座
日期:2013-10-23 21:11:03
2 [报告]
发表于 2009-11-24 16:55 |只看该作者
“struct_module”还是“struct module”

论坛徽章:
0
3 [报告]
发表于 2009-11-24 17:01 |只看该作者
是"struct_module"

论坛徽章:
0
4 [报告]
发表于 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 编辑 ]

论坛徽章:
0
5 [报告]
发表于 2009-11-25 00:17 |只看该作者
re-compile this module against your *target* kernel.

论坛徽章:
0
6 [报告]
发表于 2009-11-30 13:16 |只看该作者
谢谢各位,我把整个内核重新编译了一下再用就好了
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP