首页 > 系统服务 > 详细

Embeded linux之内核编译错误警告汇总

时间:2017-05-13 18:37:18      阅读:574      评论:0      收藏:0      [点我收藏+]

错误A:

WARNING: drivers/spi/hi_spi.o(.data+0x0): Section mismatch in reference from the variable hi_spi_platform_driver to the function .init.text:hi_spi_probe()
The variable hi_spi_platform_driver references
the function __init hi_spi_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

解决A:

__init同一个c文件用了两处。

去掉hi_spi_probe()前的__init

 

错误B:

drivers/net/ethernet/hieth-gmac/bcm53101.c:249:13: warning: ‘bcm53101_dump’ defined but not used [-Wunused-function]
static void bcm53101_dump(void)

解决B:

函数写了 没用到。

屏蔽掉函数

 

Embeded linux之内核编译错误警告汇总

原文:http://www.cnblogs.com/pokerface/p/6849754.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!