mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-04 18:09:57 +00:00
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>
This commit is contained in:
parent
bd09f60618
commit
0d82674b81
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ static inline pgd_t *pgd_alloc(struct mm_struct *mm)
|
||||||
* map with a copy of the kernel's persistent map.
|
* 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;
|
mm->context.generation = kmap_generation;
|
||||||
|
|
||||||
/* Physical version is what is passed to virtual machine on switch */
|
/* Physical version is what is passed to virtual machine on switch */
|
||||||
|
|
Loading…
Reference in a new issue