linux-2.6.32内核 linux-fusion-8.1.1编译错误解决方法

本文解决了一个关于linux-fusion-8.1.1中fusiondev.c文件的编译问题,具体涉及未声明标识符及隐式声明函数等错误,并提供了解决方案,即通过包含必要的头文件来修正。

/home/dylan/gtk_directfb/linux-fusion-8.1.1/linux/drivers/char/fusion/fusiondev.c: In function ‘fusion_sleep_on’:

/home/dylan/gtk_directfb/linux-fusion-8.1.1/linux/drivers/char/fusion/fusiondev.c:98: error: ‘TASK_INTERRUPTIBLE’ undeclared (first use in this function)

/home/dylan/gtk_directfb/linux-fusion-8.1.1/linux/drivers/char/fusion/fusiondev.c:98: error: (Each undeclared identifier is reported only once

/home/dylan/gtk_directfb/linux-fusion-8.1.1/linux/drivers/char/fusion/fusiondev.c:98: error: for each function it appears in.)

/home/dylan/gtk_directfb/linux-fusion-8.1.1/linux/drivers/char/fusion/fusiondev.c:103: error: implicit declaration of function ‘schedule_timeout’

/home/dylan/gtk_directfb/linux-fusion-8.1.1/linux/drivers/char/fusion/fusiondev.c:105: error: implicit declaration of function ‘schedule’

/home/dylan/gtk_directfb/linux-fusion-8.1.1/linux/drivers/char/fusion/fusiondev.c: In function ‘fusion_flush’:

/home/dylan/gtk_directfb/linux-fusion-8.1.1/linux/drivers/char/fusion/fusiondev.c:386: error: dereferencing pointer to incomplete type

/home/dylan/gtk_directfb/linux-fusion-8.1.1/linux/drivers/char/fusion/fusiondev.c:386: error: ‘PF_EXITING’ undeclared (first use in this function)

/home/dylan/gtk_directfb/linux-fusion-8.1.1/linux/drivers/char/fusion/fusiondev.c:387: error: dereferencing pointer to incomplete type

/home/dylan/gtk_directfb/linux-fusion-8.1.1/linux/drivers/char/fusion/fusiondev.c: In function ‘lounge_ioctl’:

/home/dylan/gtk_directfb/linux-fusion-8.1.1/linux/drivers/char/fusion/fusiondev.c:448: error: ‘TASK_INTERRUPTIBLE’ undeclared (first use in this function)

解决方法:linux/drivers/char/fusion/fusiondev.c 文件增加 #include <linux/fusion.h>

38 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 2)

39 #include <linux/device.h>

40 #endif

41 //dylan 7.5

+42 #include <linux/sched.h>

43

44 #include <linux/fusion.h>

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值