在为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;”即可。如下图所示:
阅读(2070) | 评论(0) | 转发(0) |