ISO C90 forbids mixed declarations and code
把声明放到最前面
如:
myprintk("%s %s %d\n",__FILE__, __FUNCTION__,__LINE__);
int val;
copy_from_user(&val, buf,count);
应该为:
int val;
myprintk("%s %s %d\n",__FILE__, __FUNCTION__,__LINE__);
copy_from_user(&val, buf,count);
阅读(684) | 评论(0) | 转发(0) |