|
楼主 |
发表于 2003-10-16 00:00:58
|
显示全部楼层
- # cat hello.c
- #define MODULE
- #include <linux/module.h>
- int init_module(void)
- {
- printk("<1>Hello,world\n"); return 0;
- }
- void cleanup_module(void)
- {
- printk("<1>Goodbye cruel world\n");
- }
复制代码
gcc -c hello.c
# insmod hello.o
Warning: loading hello.o will taint the kernel: no license
See http://www.tux.org/lkml/#export-tainted for information about tainted modules
Module hello loaded, with warnings
为什么出这种错误啊。怎么办啊。 |
|