分类: LINUX
2009-04-20 13:48:50
(Travis.Yang原創,如果覺得本文對你有用,請留言支持,一起探討學習。轉載請保留此行,謝謝~^_^)
Issue 1:
----------------------------------------------------------------------------------------------------------
drivers/misc/pmem.c:441: 错误: 与‘phys_mem_access_prot’类型冲突
include/asm/pgtable.h:300: 错误: ‘phys_mem_access_prot’的上一个声明在此
drivers/misc/pmem.c: 在函数‘flush_pmem_file’中:
drivers/misc/pmem.c:807: 错误: 隐式声明函数‘dmac_flush_range’
drivers/misc/pmem.c: 在函数‘pmem_setup’中:
drivers/misc/pmem.c:1267: 错误: 隐式声明函数‘ioremap_cached’
drivers/misc/pmem.c:1268: 警告: 赋值时将整数赋给指针,未作类型转换
make[2]: *** [drivers/misc/pmem.o] 错误 1
make[1]: *** [drivers/misc] 错误 2
make: *** [drivers] 错误 2
----------------------------------------------------------------------------------------------------------
pmem 是为arm架构的dream,所以可以拿掉。
Issue 2:
----------------------------------------------------------------------------------------------------------
drivers/rtc/alarm.c:16:27: 错误: asm/mach/time.h:没有该文件或目录
drivers/rtc/alarm.c: 在函数‘alarm_suspend’中:
drivers/rtc/alarm.c:357: 错误: 隐式声明函数‘save_time_delta’
make[2]: *** [drivers/rtc/alarm.o] 错误 1
make[1]: *** [drivers/rtc] 错误 2
make: *** [drivers] 错误 2
----------------------------------------------------------------------------------------------------------
修改drivers/rtc/alarm.c
#ifdef __i386__
#else
#include
#endif
添加函数实现
#ifdef __i386__
static void save_time_delta(struct timespec *delta, struct timespec *rtc)
{
set_normalized_timespec(delta,
xtime.tv_sec - rtc->tv_sec,
xtime.tv_nsec - rtc->tv_nsec);
}
#endif
(Travis.Yang原創,如果覺得本文對你有用,請留言支持,一起探討學習。轉載請保留此行,謝謝~^_^)