projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'taras/nfs-upstream' of https://github.com/tarasglek/fio-1
[fio.git]
/
oslib
/
libmtd.c
diff --git
a/oslib/libmtd.c
b/oslib/libmtd.c
index 24e9db9cf062da307cd50cc11c17416152efdc73..5fca3a01b81d734a01c9d0dc4f8f873cdd3ba258 100644
(file)
--- a/
oslib/libmtd.c
+++ b/
oslib/libmtd.c
@@
-14,7
+14,7
@@
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
- * Foundation, Inc.,
675 Mass Ave, Cambridge, MA 02139
, USA.
+ * Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
, USA.
*
* Author: Artem Bityutskiy
*
*
* Author: Artem Bityutskiy
*
@@
-35,6
+35,8
@@
#include <sys/ioctl.h>
#include <inttypes.h>
#include <sys/ioctl.h>
#include <inttypes.h>
+#include "../compiler/compiler.h"
+
#include <mtd/mtd-user.h>
#include "libmtd.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);
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);
buf = xmalloc(mtd->eb_size);
@@
-1002,7
+1004,6
@@
int mtd_torture(libmtd_t desc, const struct mtd_dev_info *mtd, int fd, int eb)
}
}
}
}
- err = 0;
normsg("PEB %d passed torture test, do not mark it a bad", eb);
out:
normsg("PEB %d passed torture test, do not mark it a bad", eb);
out: