linux/drivers/mtd/tests
Akinobu Mita 1749c00ffc mtd: mtd_nandecctest: ensure alignment requirement for bitops
Currently the data blocks which is used to test single bit error
correction is allocated statically and injecting single bit error is
implemented by using __change_bit() which must operate on the memory
aligned to the size of an "unsigned long".  But there is no such
guarantee for statically allocated array.

This fix the issue by allocating the data block dynamically by
kmalloc().  It also allocate the ecc code dynamically instead of
allocating statically on stack.

The reason to allocate the ecc code dynamically is that later change
will add tests which inject bit errors into the ecc code by bitops.

Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
2012-09-29 15:34:30 +01:00
..
Makefile
mtd_nandecctest.c mtd: mtd_nandecctest: ensure alignment requirement for bitops 2012-09-29 15:34:30 +01:00
mtd_oobtest.c mtd: introduce mtd_block_isbad interface 2012-01-09 18:25:47 +00:00
mtd_pagetest.c mtd: remove extra retlen assignment 2012-01-09 18:25:56 +00:00
mtd_readtest.c mtd: introduce mtd_can_have_bb helper 2012-01-09 18:26:24 +00:00
mtd_speedtest.c mtd: tests: use random32 instead of home-brewed generator 2012-07-06 18:17:04 +01:00
mtd_stresstest.c mtd: tests: use random32 instead of home-brewed generator 2012-07-06 18:17:04 +01:00
mtd_subpagetest.c mtd: remove extra retlen assignment 2012-01-09 18:25:56 +00:00
mtd_torturetest.c mtd: introduce mtd_can_have_bb helper 2012-01-09 18:26:24 +00:00