系统报错及处理
Evan_ZGYF丶
我在起点
展开
-
【问题排查】implicit declaration of function ‘interruptible_sleep_on‘处理
当前内核版本:3.18.y源代码对应的内核版本:2.6.37问题移植代码的时候报错:341:3: error: implicit declaration of function 'interruptible_sleep_on' [-Werror=implicit-function-declaration] interruptible_sleep_on (&tty->read_wait); ^一样是比较两个版本的内核源码,发现interruptible_.原创 2021-01-27 15:11:36 · 1160 阅读 · 3 评论 -
【问题排查】error: too many arguments to function ‘tty->driver->ops->ioctl‘处理
当前内核版本:3.18.y源代码对应的内核版本:2.6.37代码移植过程中报错:...491:13: error: too many arguments to function 'tty->driver->ops->ioctl' error = (tty->driver->ops->ioctl)(tty, file, FIONWBUFD, (unsigned long)&d_buff);比较两个内核的差异。tty->.原创 2021-01-27 13:46:01 · 2757 阅读 · 1 评论 -
【开发日常】implicit declaration of function ‘create_proc_read_entry‘处理
问题遇到编译报错:2534:2: error: implicit declaration of function 'create_proc_read_entry' [-Werror=implicit-function-declaration] create_proc_read_entry("driver/fpgae1", 0, 0, fpgae1_proc_debug, NULL);百度搜了一下,对应的头文件应该是:#include <linux/proc_fs.h>原创 2021-01-27 10:54:57 · 1888 阅读 · 1 评论
分享