Chinaunix首页 | 论坛 | 博客
  • 博客访问: 324651
  • 博文数量: 50
  • 博客积分: 961
  • 博客等级: 准尉
  • 技术积分: 495
  • 用 户 组: 普通用户
  • 注册时间: 2011-04-07 08:30
文章分类

全部博文(50)

文章存档

2015年(2)

2014年(1)

2013年(4)

2012年(18)

2011年(25)

分类: LINUX

2012-11-10 16:04:34

linux实时内核补丁错误解决方法
 
在为arm(omap)linux内核打实时补丁时,出现以下错误:
 
mm/vmalloc.c: In function 'vmap_page_range':
mm/vmalloc.c:175: error: 'start' undeclared (first use in this function)
mm/vmalloc.c:175: error: (Each undeclared identifier is reported only once
mm/vmalloc.c:175: error: for each function it appears in.)
make[1]: *** [mm/vmalloc.o] 错误 1
make: *** [mm] 错误 2
 
在网上搜集一番,发现介绍此问题的资料甚少,于是自己摸索解决。最后发现解决方法如下:
 
在vmalloc.c文件下,添加“unsigned long start = addr;”即可。如下图所示:
 
 
阅读(1999) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~