ARC: mm: PAE40: Fix crash at munmap
authorYuriy Kolerov <yuriy.kolerov@synopsys.com>
Mon, 28 Nov 2016 04:07:17 +0000 (07:07 +0300)
committerVineet Gupta <vgupta@synopsys.com>
Tue, 29 Nov 2016 17:12:08 +0000 (09:12 -0800)
commit6a8b2ca702b279bea0e8f0363056439352e2081c
tree1311d6adefa5978e394b4adb898f09f55b455a86
parent23cb1f644019bac49d87b4dd7c1eac0569cc4f53
ARC: mm: PAE40: Fix crash at munmap

commit 1c3c90930392 broke PAE40. Macro pfn_pte(pfn, prot) creates paddr
from pfn, but the page shift was getting truncated to 32 bits since we lost
the proper cast to 64 bits (for PAE400

Instead of reverting that commit, use a better helper which is 32/64 bits
safe just like ARM implementation.

Fixes: 1c3c90930392 ("ARC: mm: fix build breakage with STRICT_MM_TYPECHECKS")
Cc: <stable@vger.kernel.org> #4.4+
Signed-off-by: Yuriy Kolerov <yuriy.kolerov@synopsys.com>
[vgupta: massaged changelog]
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
arch/arc/include/asm/pgtable.h