From 62f2b8a7cdc34c1a623c81d12dd82ae0e2dbf5f1 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Tue, 20 Jun 2017 07:08:27 -0600 Subject: [PATCH] examples/smart: Fix some compilation errors. Obviously this test has not been used in a LONG time. --- examples/smart/smart_main.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/examples/smart/smart_main.c b/examples/smart/smart_main.c index 0504ec976..56df54d73 100644 --- a/examples/smart/smart_main.c +++ b/examples/smart/smart_main.c @@ -55,7 +55,8 @@ #include #include #include -#include + +#include "fsutils/mksmartfs.h" /**************************************************************************** * Pre-processor Definitions @@ -821,7 +822,7 @@ int smart_main(int argc, char *argv[]) /* Initialize to provide SMART on an MTD interface */ MTD_IOCTL(mtd, MTDIOC_BULKERASE, 0); - ret = smart_initialize(1, mtd); + ret = smart_initialize(1, mtd, "SmartTest"); if (ret < 0) { printf("ERROR: SMART initialization failed: %d\n", -ret); @@ -831,7 +832,11 @@ int smart_main(int argc, char *argv[]) /* Create a SMARTFS filesystem */ - (void)mksmartfs("/dev/smart1"); +#ifdef CONFIG_SMARTFS_MULTI_ROOT_DIRS + (void)mksmartfs("/dev/smart1", 1024, 1); +#else + (void)mksmartfs("/dev/smart1", 1024); +#endif /* Mount the file system */