From: Ilia Mirkin Date: Fri, 6 Dec 2013 02:13:25 +0000 (-0500) Subject: hexagon: correct type on pgd copy X-Git-Tag: v3.15-rc1~83^2~6 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=0d82674b811084110bd80dd260d477a5a0b85d79;p=~emulex%2Finfiniband.git hexagon: correct type on pgd copy swapper_pg_dir is an array of pgd_t, not pgd_t*. This has no actual effect since sizeof(pgd_t) == sizeof(pgd_t*), but unconfuses tools that check types. Signed-off-by: Ilia Mirkin Signed-off-by: Richard Kuo --- diff --git a/arch/hexagon/include/asm/pgalloc.h b/arch/hexagon/include/asm/pgalloc.h index 4c9d382d779..77da3b0ae3c 100644 --- a/arch/hexagon/include/asm/pgalloc.h +++ b/arch/hexagon/include/asm/pgalloc.h @@ -45,7 +45,7 @@ static inline pgd_t *pgd_alloc(struct mm_struct *mm) * map with a copy of the kernel's persistent map. */ - memcpy(pgd, swapper_pg_dir, PTRS_PER_PGD*sizeof(pgd_t *)); + memcpy(pgd, swapper_pg_dir, PTRS_PER_PGD*sizeof(pgd_t)); mm->context.generation = kmap_generation; /* Physical version is what is passed to virtual machine on switch */