- 论坛徽章:
- 0
|
make的时候出现了两个warning,warning如下
/root/pub/test/example.c: In function `set_symbol_addr':
/root/pub/test/example.c:35: warning: assignment discards qualifiers from pointer target type
/root/pub/test/example.c: In function `init':
/root/pub/test/example.c:69: warning: ISO C90 forbids mixed declarations and code
line35:for (mod = THIS_MODULE, s = mod->syms, i = 0; i < mod->num_syms; ++i, ++s)
line69:EXPORT_SYMBOL(sys_call_table);
不太明白为社么会出现这两个警告,另外模块中printk的测试语句也不能正常输出,但是没有出现error,
模块可以insmod,lsmod,rmmod~~
求各位前辈指点~~
谢谢了:) |
|