Oopenvela-robottesting/drivers: fix compile error.
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
apps/testing:move drivertest fftest irtest monkey nand_sim pcitest sd_bench sd_stress sensortest folders to the new driver folder Signed-off-by: tengshuangshuang <tengshuangshuang@xiaomi.com> | 2 个月前 | |
apps/testing:move drivertest fftest irtest monkey nand_sim pcitest sd_bench sd_stress sensortest folders to the new driver folder Signed-off-by: tengshuangshuang <tengshuangshuang@xiaomi.com> | 2 个月前 | |
apps/testing:move drivertest fftest irtest monkey nand_sim pcitest sd_bench sd_stress sensortest folders to the new driver folder Signed-off-by: tengshuangshuang <tengshuangshuang@xiaomi.com> | 2 个月前 | |
apps/testing:move drivertest fftest irtest monkey nand_sim pcitest sd_bench sd_stress sensortest folders to the new driver folder Signed-off-by: tengshuangshuang <tengshuangshuang@xiaomi.com> | 2 个月前 | |
testing/drivers: fix compile error. nand_sim_main.c:87:28: warning: implicit declaration of function 'kmm_zalloc'; did you mean 'lib_zalloc'? [-Wimplicit-function-declaration] 87 | g_nand_sim_mtd_wrapper = kmm_zalloc(sizeof(struct nand_wrapper_dev_s)); | ^~~~~~~~~~ | lib_zalloc nand_sim_main.c:87:26: warning: assignment to 'struct mtd_dev_s *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 87 | g_nand_sim_mtd_wrapper = kmm_zalloc(sizeof(struct nand_wrapper_dev_s)); | ^ nand_sim_main.c: In function 'terminate': nand_sim_main.c:122:3: warning: implicit declaration of function 'kmm_free' [-Wimplicit-function-declaration] 122 | kmm_free(g_nand_sim_mtd_under); | ^~~~~~~~ nand_sim_main.c: In function 'nand_main': nand_sim_main.c:144:9: warning: implicit declaration of function 'fork' [-Wimplicit-function-declaration] 144 | pid = fork(); | ^~~~ nand_sim_main.c:151:7: warning: implicit declaration of function 'daemon' [-Wimplicit-function-declaration] 151 | if (daemon(0, 1) == -1) | ^~~~~~ nand_sim_main.c:165:18: warning: assignment to 'struct nand_raw_s *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 165 | g_nand_mtd_raw = kmm_zalloc(sizeof(struct nand_raw_s)); | ^ nand_sim_main.c:203:7: warning: implicit declaration of function 'sleep' [-Wimplicit-function-declaration] 203 | sleep(1); | ^~~~~ Signed-off-by: wangzhi16 <wangzhi16@xiaomi.com> | 2 个月前 |