memtest: Fix memspeed access size

The move to libbase reverted the type of the pointer
from long to int.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
This commit is contained in:
Benjamin Herrenschmidt 2020-07-08 13:21:45 +10:00
parent 798b3d7ba4
commit c0b948d4f9
1 changed files with 1 additions and 1 deletions

View File

@ -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;