编译android内核出现问题 隐式声明函数‘dmac_flush_range’未定义

蓝天白云青草 2014-02-27 08:53:13
/home/wk/pmem.c:689:5: 错误: ‘get_pmem_user_addr’重定义
/home/wk/android_pmem.h:78:19: 附注: ‘get_pmem_user_addr’的上一个定义在此
/home/wk/pmem.c:746:5: 错误: ‘get_pmem_file’重定义
/home/wk/android_pmem.h:75:19: 附注: ‘get_pmem_file’的上一个定义在此
/home/wk/pmem.c:769:6: 错误: ‘put_pmem_file’重定义
/home/wk/android_pmem.h:80:20: 附注: ‘put_pmem_file’的上一个定义在此
/home/wk/pmem.c:791:6: 错误: ‘flush_pmem_file’重定义
/home/wk/android_pmem.h:81:20: 附注: ‘flush_pmem_file’的上一个定义在此
/home/wk/pmem.c: 在函数‘flush_pmem_file’中:
/home/wk/pmem.c:813:3: 错误: 隐式声明函数‘dmac_flush_range’ [-Werror=implicit-function-declaration]
/home/wk/pmem.c: 在文件作用域:
/home/wk/pmem.c:933:5: 错误: ‘pmem_remap’重定义
/home/wk/android_pmem.h:87:19: 附注: ‘pmem_remap’的上一个定义在此
/home/wk/pmem.c:1226:5: 错误: ‘pmem_setup’重定义
/home/wk/android_pmem.h:83:19: 附注: ‘pmem_setup’的上一个定义在此
/home/wk/pmem.c: 在函数‘pmem_setup’中:
/home/wk/pmem.c:1273:3: 错误: 隐式声明函数‘ioremap_cached’ [-Werror=implicit-function-declaration]
求解决方案。
...全文
248 2 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
蓝天白云青草 2014-02-27
  • 打赏
  • 举报
回复
59 #ifdef CONFIG_ANDROID_PMEM 60 int is_pmem_file(struct file *file); 61 int get_pmem_file(int fd, unsigned long *start, unsigned long *vstart, 62 unsigned long *end, struct file **filp); 63 int get_pmem_user_addr(struct file *file, unsigned long *start, 64 unsigned long *end); 65 void put_pmem_file(struct file* file); 66 void flush_pmem_file(struct file *file, unsigned long start, unsigned long len); 67 int pmem_setup(struct android_pmem_platform_data *pdata, 68 long (*ioctl)(struct file *, unsigned int, unsigned long), 69 int (*release)(struct inode *, struct file *)); 70 int pmem_remap(struct pmem_region *region, struct file *file, 71 unsigned operation); 72 73 #else 74 static inline int is_ pmem_file(struct file *file) { return 0; } 75 static inline int get_pmem_file(int fd, unsigned long *start, 76 unsigned long *vstart, unsigned long *end, 77 struct file **filp) { return -ENOSYS; } 78 static inline int get_pmem_user_addr(struct file *file, unsigned long *start, 79 unsigned long *end) { return -ENOSYS; } 80 static inline void put_pmem_file(struct file* file) { return; } 81 static inline void flush_pmem_file(struct file *file, unsigned long start, 82 unsigned long len) { return; } 83 static inline int pmem_setup(struct android_pmem_platform_data *pdata, 84 long (*ioctl)(struct file *, unsigned int, unsigned long), 85 int (*release)(struct inode *, struct file *)) { return -ENOSYS; } 86 87 static inline int pmem_remap(struct pmem_region *region, struct file *file, 88 unsigned operation) { return -ENOSYS; } 89 #endif
蓝天白云青草 2014-02-27
  • 打赏
  • 举报
回复
上面有2类问题,一类问题是/home/wk/pmem.c:689:5: 错误: ‘get_pmem_user_addr’重定义 /home/wk/android_pmem.h:78:19: 附注: ‘get_pmem_user_addr’的上一个定义在此 另一种问题是 /home/wk/pmem.c:813:3: 错误: 隐式声明函数‘dmac_flush_range’ [-Werror=implicit-function-declaration]

80,472

社区成员

发帖
与我相关
我的任务
社区描述
移动平台 Android
androidandroid-studioandroidx 技术论坛(原bbs)
社区管理员
  • Android
  • yechaoa
  • 失落夏天
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧