免费注册 查看新帖 |

Chinaunix

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

报错信息(什么意思) [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-05-13 10:28 |只看该作者 |倒序浏览
Warning:   loading   hello.o   will   taint   the   kernel:   no   license   
      See   http://www.tux.org/lkml/#export-tainted   for   information   about   tainted   modules   
  Module   zbcl   loaded,   with   warnings
  怎么回事?

论坛徽章:
0
2 [报告]
发表于 2007-05-13 11:03 |只看该作者
原帖由 loveskyer 于 2007-5-13 10:28 发表于 1楼  
Warning:   loading   hello.o   will   taint   the   kernel:   no   license   
      See   http://www.tux.org/lkml/#export-tainted   for   information   about   tainted   modules   
  Module   z ...


What does it mean for a module to be tainted?
(REG, contributed by John Levon) Some vendors distribute binary modules (i.e. modules without available source code under a free software license). As the source is not freely available, any bugs uncovered whilst such modules are loaded cannot be investigated by the kernel hackers. All problems discovered whilst such a module is loaded must be reported to the vendor of that module, not the Linux kernel hackers and the linux-kernel mailing list. The tainting scheme is used to identify bug reports from kernels with binary modules loaded: such kernels are marked as "tainted" by means of the MODULE_LICENSE tag. If a module is loaded that does not specify an approved license, the kernel is marked as tainted. The canonical list of approved license strings is in linux/include/linux/module.h.
"oops" reports marked as tainted are of no use to the kernel developers and will be ignored. A warning is output when such a module is loaded. Note that you may come across module source that is under a compatible license, but does not have a suitable MODULE_LICENSE tag. If you see a warning from modprobe or insmod for a module under a compatible license, please report this bug to the maintainers of the module, so that they can add the necessary tag.
(KO) If a symbol has been exported with EXPORT_SYMBOL_GPL then it appears as unresolved for modules that do not have a GPL compatible MODULE_LICENSE string, and prints a warning. A module can also taint the kernel if you do a forced load. This bypasses the kernel/module verification checks and the result is undefined, when it breaks you get to keep the pieces.
(KO) According to Alan Cox, a license of "BSD without advertisement clause" is not a suitable free software license. This license type allows binary only modules without source code. Any modules in the kernel tarball with this license should really be "Dual BSD/GPL".



如果载入非GPL模块到系统内存, 则会在内核中设置被污染标识,这个标识只起到记录信息的作用.不过如果开发者提交的bug报告中含有被污染标识,那么报告的信用无疑会降低,另外,非GPL模块不能调用GPL-only符号.

你在你代码最后面加入
MODULE_LICENSE("GPL");

论坛徽章:
0
3 [报告]
发表于 2007-05-15 08:18 |只看该作者
谢谢楼上,我认为这个实际上就上个提示警告信息!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP