主题 : 编辑内核时出现如下错误:WARNING: modpost: Found 9 section mismatch(es) 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 76716
精华: 0
发帖: 47
金钱: 235 两
威望: 47 点
综合积分: 94 分
注册时间: 2012-08-28
最后登录: 2013-01-11
楼主  发表于: 2012-09-21 09:58

 编辑内核时出现如下错误:WARNING: modpost: Found 9 section mismatch(es)

Tiny210
复制mini210_linux_defconfig到.config ,make menuconfig修改触摸屏驱动为S3C touchsreen driver。
编辑内核,告错:
WARNING: modpost: Found 9 section mismatch(es)

详细信息:
WARNING: drivers/input/touchscreen/built-in.o(.data+0x0): Section mismatch in reference from the variable s3c_ts_driver to the function .init.text:s3c_ts_probe()
The variable s3c_ts_driver references
the function __init s3c_ts_probe()
If the reference is valid then annotate the
variable with __init* or __refdata (see linux/init.h) or name the variable:
*_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console,

  LD      drivers/input/built-in.o
WARNING: drivers/input/built-in.o(.data+0x4a8): Section mismatch in reference from the variable s3c_ts_driver to the function .init.text:s3c_ts_probe()
The variable s3c_ts_driver references
the function __init s3c_ts_probe()
If the reference is valid then annotate the
variable with __init* or __refdata (see linux/init.h) or name the variable:
*_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console,

试过在结构体变量s3c_ts_driver  第一行 .probe = __init (s3c_ts_probe)不起作用。

请大侠帮忙解决:modpost: Found 9 section mismatch(es) 故障。
make menuconfig修改触摸屏驱动到s3c touchsreen driver 时,是否还需要修改相应关联配置,关联配置有哪些?
级别: 新手上路
UID: 76716
精华: 0
发帖: 47
金钱: 235 两
威望: 47 点
综合积分: 94 分
注册时间: 2012-08-28
最后登录: 2013-01-11
1楼  发表于: 2012-09-24 13:48
恳请友善之臂的技术大侠,帮忙解决啊。这问题折腾了我好几天了。强烈寻求支持啊
^很多问题的背后都是简单的原因......
级别: 荣誉会员
UID: 34780
精华: 0
发帖: 1219
金钱: 6230 两
威望: 1246 点
综合积分: 2438 分
注册时间: 2010-12-21
最后登录: 2017-09-18
2楼  发表于: 2012-09-24 14:15
只是WARNING而已,如果能生成zImage,是不用在意它的
级别: 新手上路
UID: 76716
精华: 0
发帖: 47
金钱: 235 两
威望: 47 点
综合积分: 94 分
注册时间: 2012-08-28
最后登录: 2013-01-11
3楼  发表于: 2012-09-24 15:57

 回 2楼(911gt3) 的帖子

虽然是WARNING,但是在开发板开机过程中有这样的错误:

s3c-ts:probe of s3c-ts failed with error -5,且总是重启:rebooting in 5 seconds

如果make menuconfig时去掉该驱动,就可正常开机。
^很多问题的背后都是简单的原因......
级别: 荣誉会员
UID: 34780
精华: 0
发帖: 1219
金钱: 6230 两
威望: 1246 点
综合积分: 2438 分
注册时间: 2010-12-21
最后登录: 2017-09-18
4楼  发表于: 2012-09-24 19:32
那这是另一个问题了,印象中你已经发了贴我也回了
级别: 新手上路
UID: 76716
精华: 0
发帖: 47
金钱: 235 两
威望: 47 点
综合积分: 94 分
注册时间: 2012-08-28
最后登录: 2013-01-11
5楼  发表于: 2012-09-26 09:06
该问题已经解决