error: 'TASK_INTERRUPTIBLE' undeclared (first use in this function)

原创 2012年03月21日 09:51:58

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)

make -C /opt/FriendlyARM/linux-2.6.32.2 M=/opt/FriendlyARM/linux-arm-modules/plat_buttons modules ...

Linux驱动编程编译模块时出现 error:'TASK_NORMAL' undeclared (first use in this function

Linux驱动编程编译模块时出现: error:'TASK_NORMAL' undeclared (first use in this function 首先想到未包含库,于是去内查看内核代码,将库文...

./stdio.h:477:1: error: 'gets' undeclared here (not in a function)

今天编译一个bsp包时,出现如下错误,简直不知道为嘛,按理说官方给的bsp包没什么问吧,但在ubuntu 13.4下编译,出现如标题的错误,于是只能google,问题是解决了 I hope yo...

Bind: Address Already in Use Or How to Avoid this Error when Closing TCP Connections

In order for a network connection to close, both ends have to send FIN (final) packets, which indi...

ERROR 1418 (HY000): This function has none of DETERMINISTIC, NO SQL, or READS SQ L DATA in its decla

ERROR 1418 (HY000): This function has none of DETERMINISTIC, NO SQL, or READS SQL DATA in its declar...

iOS逆向 error: use of undeclared identifier 'MSHookIvar'

iOS 逆向开发交流群用Theos 编写代码的时候,发现’MSHookIvar’这个编译不通过,找了一圈不知道是什么原因,后面发现是少了一个substrate.h 文件。下载这个文件,然后复制到你工程...

warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _

使用VS2005以上版本(VS2005、VS2008、VS2010)编译在其他编译器下正常通过的C语言程序,你可能会遇到类似如下的警告提示: 引用内容warning C4996: 'strcpy': ...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:深度学习:神经网络中的前向传播和反向传播算法推导
举报原因:
原因补充:

(最多只允许输入30个字)