fio: Fix a GCC 4.9 allignment error.
Causes a Bus Error when running fio.
Change-Id: I388673eb3c5d596026647543d14c47ba08fef3c7
diff --git a/stat.c b/stat.c
index 85bd728..6a3610f 100644
--- a/stat.c
+++ b/stat.c
@@ -1144,10 +1144,14 @@
int m;
for (m = 0; m < FIO_IO_U_PLAT_NR; m++) {
+ /* HACK to prevent bus error in arm GCC 4.9 */
+ dst->io_u_plat[k][m]+=1;
if (!dst->unified_rw_rep)
dst->io_u_plat[k][m] += src->io_u_plat[k][m];
else
dst->io_u_plat[0][m] += src->io_u_plat[k][m];
+ /* HACK to prevent bus error in arm GCC 4.9 */
+ dst->io_u_plat[k][m]-=1;
}
}