memtest: Fix memspeed access size

The move to libbase reverted the type of the pointer
from long to int.
Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
parent 798b3d7b
......@@ -164,7 +164,7 @@ int memtest_data(unsigned int *addr, unsigned long size, int random)
void memspeed(unsigned int *addr, unsigned long size, bool read_only)
{
volatile unsigned int *array = addr;
volatile unsigned long *array = (unsigned long *)addr;
int i;
unsigned int start, end;
unsigned long write_speed = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment