编译android内核出现问题 隐式声明函数‘dmac_flush_range’未定义 android编译函数为隐士声明函数解决方案 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 上面有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] 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 百度api RouteOverlay的问题 在安卓上运行网页 如何设置edittext中输入的字符串中某个字符的颜色 求助 Makefile --- PRODUCT_LOCALES android系统通话间的声音是怎么做出来的? 请教,行业前景展望,android开发和IPHONE开发 android surfaceView改变大小了,增加的部分怎么是黑的啊? Android 增加物理按键问题 游戏中 不同屏幕的适配问题 求一个安卓动态布局的列子 android datepickerdialog 怎样在第一次弹出对话框的时候不能选择比今天小的日期! [求教贴]androidAPI文档怎么看
/home/wk/android_pmem.h:78:19: 附注: ‘get_pmem_user_addr’的上一个定义在此另一种问题是
/home/wk/pmem.c:813:3: 错误: 隐式声明函数‘dmac_flush_range’ [-Werror=implicit-function-declaration]
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