嵌入式内核编译错误解决办法
来源:互联网 发布:新华书店淘宝旗舰店 编辑:程序博客网 时间:2024/06/04 19:12
本解决办法从网络搜集整理,仅供个人学习之用
1,implicit declaration of function 'kzalloc'
解决方法
#include <linux/slab.h>2,implicit declaration of function 'iowrite16be'
解决方法
在前面加上下述定义
#define iowrite16be(v, addr) iowrite8(v,addr)
3,error: implicit declaration of function 'irq_to_gpio'
drivers/input/touchscreen/eeti_ts.c: In function 'eeti_ts_irq_active':
drivers/input/touchscreen/eeti_ts.c:65:2: error: implicit declaration of function 'irq_to_gpio'
解决办法
方法:
更改的地方总共包括三个文件
arch/arm/mach-pxa/raumfeld.c | 1 +
drivers/input/touchscreen/eeti_ts.c | 8 +++++---
include/linux/input/eeti_ts.h | 1 +
a、raumfeld.c
static struct eeti_ts_platform_data eeti_ts_pdata = {
.irq_active_high = 1,
.gpio = GPIO_TOUCH_IRQ,//添加
};
b、/drivers/input/touchscreen/eeti_ts.c
struct eeti_ts_priv {
struct input_dev *input;
struct work_struct work;
struct mutex mutex;
int irq, irq_active_high;//删除
int irq, gpio, irq_active_high;//添加
};
static inline int eeti_ts_irq_active(struct eeti_ts_priv *priv)
{
return gpio_get_value(irq_to_gpio(priv->irq)) == priv->irq_active_high;//删除
return gpio_get_value(priv->gpio) == priv->irq_active_high;//添加
}
static int __devinit eeti_ts_probe(struct i2c_client *client,
pdata = client->dev.platform_data;
下面两句
==========================================
if (pdata)
priv->irq_active_high = pdata->irq_active_high;
============================================
替换为
==========================================
if (pdata) {
priv->gpio = pdata->gpio;
priv->irq_active_high = pdata->irq_active_high;
}
===============================================
c、/include/linux/input/eeti_ts.h
struct eeti_ts_platform_data {
unsigned int irq_active_high;
unsigned int gpio;//添加
};
4,implicit declaration of function `dma_cache_sync'表示隐式声明错
解决办法
直接在advansys.c中把
a,dma_cache_sync(board->dev, scp->sense_buffer,
SCSI_SENSE_BUFFERSIZE, DMA_FROM_DEVICE);
注释掉,编译就OK了
b,drivers/scsi/osd/osd_initiator.c: In function 'build_test':
drivers/scsi/osd/osd_initiator.c:67: error: size of array 'type name' is negative
drivers/scsi/osd/osd_initiator.c:68: error: size of array 'type name' is negative
注释掉buildtest中的内容
- 嵌入式内核编译错误解决办法
- 嵌入式 内核编译错误常用解决方案
- 内核编译错误的一些解决办法
- 内核编译错误的一些解决办法
- 内核编译错误的一些解决办法
- 内核编译错误的一些解决办法
- 内核编译错误的一些解决办法
- linux内核编译__devinit错误解决办法
- 嵌入式初步-----内核编译
- 嵌入式linux内核编译
- 内核编译不能找到standby.code错误解决办法
- 有关编译嵌入式android的swap空间不够导致的编译错误和解决办法
- 嵌入式 armlinux内核编译注意事项
- 嵌入式 armlinux内核编译注意事项
- Linux嵌入式内核编译过程
- 编译内核错误解决
- 编译内核错误收集
- 内核编译常见错误
- IOS中的WebView
- Sicily 1036. Crypto Columns
- 读取JSON字符串,转为XML文件(二)
- Phoenix常见问题解答
- 何以笙箫默
- 嵌入式内核编译错误解决办法
- 串并联谐振带宽和Q
- iOS学习代码下载—ShareSDK分享到微信、微信朋友圈、QQ
- 常用的Java代码汇总
- 利用中断实现的4*4矩阵键盘扫描
- Android 反编译
- AsyncTask的入门
- GLSL 内建函数
- JAVA之旅——重温Java关键词3