aboutsummaryrefslogtreecommitdiff
path: root/arch/mips/include/asm/mach-xilfpga/irq.h
diff options
context:
space:
mode:
authorMike Rapoport <rppt@linux.ibm.com>2020-04-02 11:16:14 +0300
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>2020-04-14 12:54:43 +0200
commit3fbfb4585bfd4ff34e9d3b4edd5b3e49e8f5a541 (patch)
treeeda39214dc6a797616b6d74285b5defffb724071 /arch/mips/include/asm/mach-xilfpga/irq.h
parentde0c4eb44c39cbb2b3b11bac699b618b0f8d4142 (diff)
mips: define pud_index() regardless of page table folding
Commit 31168f033e37 ("mips: drop __pXd_offset() macros that duplicate pXd_index() ones") is correct that pud_index() & __pud_offset() are the same when pud_index() is actually provided, however it does not take into account the __PAGETABLE_PUD_FOLDED case. This has broken MIPS KVM compilation because it relied on availability of pud_index(). Define pud_index() regardless of page table folded. It will evaluate to actual index for 4-level pagetables and to 0 for folded PUD level. Link: https://lore.kernel.org/lkml/20200331154749.5457-1-pbonzini@redhat.com Reported-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Mike Rapoport <rppt@linux.ibm.com> Tested-by: Huacai Chen <chenhc@lemote.com> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Diffstat (limited to 'arch/mips/include/asm/mach-xilfpga/irq.h')
0 files changed, 0 insertions, 0 deletions