Change ARRAY_SIZE to FIO_ARRAY_SIZE
[fio.git] / oslib / libmtd.c
index 385b9d2fa6b376b79ca06aa9690b9167aada2cbc..5fca3a01b81d734a01c9d0dc4f8f873cdd3ba258 100644 (file)
@@ -35,6 +35,8 @@
 #include <sys/ioctl.h>
 #include <inttypes.h>
 
+#include "../compiler/compiler.h"
+
 #include <mtd/mtd-user.h>
 #include "libmtd.h"
 
@@ -960,7 +962,7 @@ int mtd_torture(libmtd_t desc, const struct mtd_dev_info *mtd, int fd, int eb)
        void *buf;
 
        normsg("run torture test for PEB %d", eb);
-       patt_count = ARRAY_SIZE(patterns);
+       patt_count = FIO_ARRAY_SIZE(patterns);
 
        buf = xmalloc(mtd->eb_size);