When I do LTP test, LTP test case ksm06 caused panic at
break_ksm_pmd_entry
-> pmd_leaf (Huge page table but False)
-> pte_present (panic)
The reason is pmd_leaf is not defined, So like
commit 501b81046701 ("mips: mm: add p?d_leaf() definitions")
add p?d_leaf() definition for LoongArch.
v2: add Fixes: in commit message.
Fixes: 09cfefb7fa70 ("LoongArch: Add memory management")
Signed-off-by: Hongchen Zhang <zhanghongchen@xxxxxxxxxxx>
---