Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

arch/tile: Add a warning if we try to allocate too much vmalloc memory.

Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>

+4
+4
arch/tile/kernel/setup.c
··· 1334 1334 pte_t *pte; 1335 1335 1336 1336 BUG_ON(pgd_addr_invalid(addr)); 1337 + if (addr < VMALLOC_START || addr >= VMALLOC_END) 1338 + panic("PCPU addr %#lx outside vmalloc range %#lx..%#lx;" 1339 + " try increasing CONFIG_VMALLOC_RESERVE\n", 1340 + addr, VMALLOC_START, VMALLOC_END); 1337 1341 1338 1342 pgd = swapper_pg_dir + pgd_index(addr); 1339 1343 pud = pud_offset(pgd, addr);