Re: [PATCH] powerpc/mm: use the correct pointer when setting a 2M pte

2017-01-28 Thread Aneesh Kumar K.V
Reza Arbab writes: > When setting a 2M pte, radix__map_kernel_page() is using the address > > ptep = (pte_t *)pudp; > > Fix this conversion to use pmdp instead. Use pmdp_ptep() to do this > instead of casting the pointer. > Reviewed-by: Aneesh Kumar K.V > Signed-off-by: Reza Arbab > ---

[PATCH] powerpc/mm: use the correct pointer when setting a 2M pte

2017-01-25 Thread Reza Arbab
When setting a 2M pte, radix__map_kernel_page() is using the address ptep = (pte_t *)pudp; Fix this conversion to use pmdp instead. Use pmdp_ptep() to do this instead of casting the pointer. Signed-off-by: Reza Arbab --- arch/powerpc/mm/pgtable-radix.c | 4 ++-- 1 file changed, 2 inser