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);
把声明放到最前面
如:
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);
相关热门文章
给主人留下些什么吧!~~
评论热议