nuttx-apps/testing/drivers/nand_sim
wangzhi16 6d8c87c6a8 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>
2026-04-20 15:19:35 +08:00
..
CMakeLists.txt apps/testing:move drivertest fftest irtest monkey nand_sim pcitest sd_bench sd_stress sensortest folders to the new driver folder 2026-04-20 15:19:07 +08:00
Kconfig apps/testing:move drivertest fftest irtest monkey nand_sim pcitest sd_bench sd_stress sensortest folders to the new driver folder 2026-04-20 15:19:07 +08:00
Make.defs apps/testing:move drivertest fftest irtest monkey nand_sim pcitest sd_bench sd_stress sensortest folders to the new driver folder 2026-04-20 15:19:07 +08:00
Makefile apps/testing:move drivertest fftest irtest monkey nand_sim pcitest sd_bench sd_stress sensortest folders to the new driver folder 2026-04-20 15:19:07 +08:00
nand_sim_main.c testing/drivers: fix compile error. 2026-04-20 15:19:35 +08:00