error: 'TASK_INTERRUPTIBLE' undeclared (first use in this function)
来源:互联网 发布:人物关系网络 算法 编辑:程序博客网 时间:2024/05/21 18:31
make -C /opt/FriendlyARM/linux-2.6.32.2 M=/opt/FriendlyARM/linux-arm-modules/plat_buttons modules
make[1]: Entering directory `/opt/FriendlyARM/linux-2.6.32.2'
CC [M] /opt/FriendlyARM/linux-arm-modules/plat_buttons/plat_buttons.o
/opt/FriendlyARM/linux-arm-modules/plat_buttons/plat_buttons.c: In function 'buttons_interrupt':
/opt/FriendlyARM/linux-arm-modules/plat_buttons/plat_buttons.c:41: error: 'TASK_INTERRUPTIBLE' undeclared (first use in this function)
/opt/FriendlyARM/linux-arm-modules/plat_buttons/plat_buttons.c:41: error: (Each undeclared identifier is reported only once
/opt/FriendlyARM/linux-arm-modules/plat_buttons/plat_buttons.c:41: error: for each function it appears in.)
/opt/FriendlyARM/linux-arm-modules/plat_buttons/plat_buttons.c: In function 's3c24xx_buttons_read':
/opt/FriendlyARM/linux-arm-modules/plat_buttons/plat_buttons.c:99: error: 'TASK_INTERRUPTIBLE' undeclared (first use in this function)
/opt/FriendlyARM/linux-arm-modules/plat_buttons/plat_buttons.c:99: error: implicit declaration of function 'signal_pending'
/opt/FriendlyARM/linux-arm-modules/plat_buttons/plat_buttons.c:99: error: implicit declaration of function 'schedule'
make[2]: *** [/opt/FriendlyARM/linux-arm-modules/plat_buttons/plat_buttons.o] Error 1
make[1]: *** [_module_/opt/FriendlyARM/linux-arm-modules/plat_buttons] Error 2
make[1]: Leaving directory `/opt/FriendlyARM/linux-2.6.32.2'
make: *** [all] Error 2
错误定位行 wake_up_interruptible(&button_waitq);
原因缺少头文件 #include <linux/sched.h> 添加后即可通过编译 !
- error: 'TASK_INTERRUPTIBLE' undeclared (first use in this function)
- error: 'TASK_INTERRUPTIBLE' undeclared (first use in this function)
- error: 'TASK_INTERRUPTIBLE' undeclared (first use in this function)
- [kernel]: error: ‘PATH_MAX’ undeclared (first use in this function)
- error: 'FILE' undeclared (first use in this function)
- error: 'FALSE' undeclared (first use in this function)
- error: ‘IPPROTO_RAW’ undeclared (first use in this function)
- [kernel]: error: ‘PATH_MAX’ undeclared (first use in this function)
- error: ‘SA_INTERRUPT’ undeclared (first use in this function)
- error: ‘PATH_MAX’ undeclared (first use in this function)
- 问题解决: error: ‘SCM_CREDENTIALS’ undeclared (first use in this function)
- NF_IP_PRE_ROUTING’ undeclared (first use in this function)
- 'O_BINARY' undeclared (first use in this function)
- `pid_t' undeclared (first use in this function)
- error: 'TASK_UNINTERRUPTIBLE' undeclared (first use in this function)和error: 'TASK_NORMAL' undeclare
- drivers/video/console/vgacon.c:486: error: 'PCIMEM_BASE' undeclared (first use in this function)
- fs/binfmt_aout.c:256:30: error: 'SEGMENT_SIZE' undeclared (first use in this function)
- mainarg.c:7:20: error: ‘argc’ undeclared (first use in this function)
- [PHP]加密小结
- 关于 A^x = A^(x % Phi(C) + Phi(C)) (mod C) 的若干证明(指数循环节)
- IOS多线程开发之GCD
- Rsync的配置与使用
- mysql explain 详解
- error: 'TASK_INTERRUPTIBLE' undeclared (first use in this function)
- 聊聊高并发(二十)解析java.util.concurrent各个组件(二) 12个原子变量相关类
- 用li写的一个简单的横向导航菜单demo
- 应用中添加讯飞语音功能
- delphi——语句
- 如何配置struts2 action默认后缀
- QtCreator调试传入运行参数
- AndroidGreenDao使用个人心得
- api之家