]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
hexagon: correct type on pgd copy
authorIlia Mirkin <imirkin@alum.mit.edu>
Fri, 6 Dec 2013 02:13:25 +0000 (21:13 -0500)
committerRichard Kuo <rkuo@codeaurora.org>
Fri, 4 Apr 2014 23:20:01 +0000 (18:20 -0500)
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>
arch/hexagon/include/asm/pgalloc.h

index 4c9d382d7798e6640f52034f5e713a025a7bdab8..77da3b0ae3c2b2c37636f4f0e8dc3ee296e80268 100644 (file)
@@ -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 */