summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIlia Mirkin <imirkin@alum.mit.edu>2013-12-06 03:13:25 +0100
committerRichard Kuo <rkuo@codeaurora.org>2014-04-05 01:20:01 +0200
commit0d82674b811084110bd80dd260d477a5a0b85d79 (patch)
tree6d359e849f08333a3218c29df4bed13c48adedef
parentsmp, hexagon: kill SMP single function call interrupt (diff)
downloadlinux-0d82674b811084110bd80dd260d477a5a0b85d79.tar.xz
linux-0d82674b811084110bd80dd260d477a5a0b85d79.zip
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 <imirkin@alum.mit.edu> Signed-off-by: Richard Kuo <rkuo@codeaurora.org>
-rw-r--r--arch/hexagon/include/asm/pgalloc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/hexagon/include/asm/pgalloc.h b/arch/hexagon/include/asm/pgalloc.h
index 4c9d382d7798..77da3b0ae3c2 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 */