c07af4f1ce
Core mm expects __PAGETABLE_{PUD,PMD}_FOLDED to be defined if these page table levels folded. Usually, these defines are provided by <asm-generic/pgtable-nopmd.h> and <asm-generic/pgtable-nopud.h>. But some architectures fold page table levels in a custom way. They need to define these macros themself. This patch adds missing defines. The patch fixes mm->nr_pmds underflow and eliminates dead __pmd_alloc() and __pud_alloc() on architectures without these page table levels. Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com> Cc: Aaro Koskinen <aaro.koskinen@iki.fi> Cc: David Howells <dhowells@redhat.com> Cc: Geert Uytterhoeven <geert@linux-m68k.org> Cc: Heiko Carstens <heiko.carstens@de.ibm.com> Cc: Helge Deller <deller@gmx.de> Cc: "James E.J. Bottomley" <jejb@parisc-linux.org> Cc: Koichi Yasutake <yasutake.koichi@jp.panasonic.com> Cc: Martin Schwidefsky <schwidefsky@de.ibm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> |
||
---|---|---|
.. | ||
m32104ut | ||
m32700ut | ||
mappi2 | ||
mappi3 | ||
opsput | ||
addrspace.h | ||
assembler.h | ||
atomic.h | ||
barrier.h | ||
bitops.h | ||
bug.h | ||
bugs.h | ||
cache.h | ||
cachectl.h | ||
cacheflush.h | ||
checksum.h | ||
cmpxchg.h | ||
current.h | ||
dcache_clear.h | ||
delay.h | ||
device.h | ||
div64.h | ||
dma.h | ||
elf.h | ||
emergency-restart.h | ||
fb.h | ||
flat.h | ||
ftrace.h | ||
futex.h | ||
hardirq.h | ||
hw_irq.h | ||
io.h | ||
irq.h | ||
irq_regs.h | ||
irqflags.h | ||
Kbuild | ||
kdebug.h | ||
kmap_types.h | ||
linkage.h | ||
local.h | ||
local64.h | ||
m32r.h | ||
m32r_mp_fpga.h | ||
m32102.h | ||
mc146818rtc.h | ||
mmu.h | ||
mmu_context.h | ||
mmzone.h | ||
mutex.h | ||
page.h | ||
pci.h | ||
percpu.h | ||
pgalloc.h | ||
pgtable-2level.h | ||
pgtable.h | ||
processor.h | ||
ptrace.h | ||
rtc.h | ||
s1d13806.h | ||
segment.h | ||
serial.h | ||
setup.h | ||
shmparam.h | ||
signal.h | ||
smp.h | ||
spinlock.h | ||
spinlock_types.h | ||
string.h | ||
switch_to.h | ||
syscall.h | ||
termios.h | ||
thread_info.h | ||
timex.h | ||
tlb.h | ||
tlbflush.h | ||
topology.h | ||
types.h | ||
uaccess.h | ||
ucontext.h | ||
unaligned.h | ||
unistd.h | ||
user.h | ||
vga.h | ||
xor.h |