From fcfd7ef79a04a300561ab18398f4dab6af3c1c56 Mon Sep 17 00:00:00 2001 From: Russell King Date: Wed, 17 Sep 2003 15:51:46 +0100 Subject: [PATCH] [ARM] Ensure that MM initialisation warnings are reported as bugs. --- arch/arm/mm/mm-armv.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/arch/arm/mm/mm-armv.c b/arch/arm/mm/mm-armv.c index fe4dacb950e71..273b1b42c2b50 100644 --- a/arch/arm/mm/mm-armv.c +++ b/arch/arm/mm/mm-armv.c @@ -392,12 +392,19 @@ static void __init create_mapping(struct map_desc *md) long off; if (md->virtual != vectors_base() && md->virtual < PAGE_OFFSET) { - printk(KERN_WARNING "MM: not creating mapping for " + printk(KERN_WARNING "BUG: not creating mapping for " "0x%08lx at 0x%08lx in user region\n", md->physical, md->virtual); return; } + if (md->type == MT_DEVICE && + md->virtual >= PAGE_OFFSET && md->virtual < VMALLOC_END) { + printk(KERN_WARNING "BUG: mapping for 0x%08lx at 0x%08lx " + "overlaps vmalloc space\n", + md->physical, md->virtual); + } + domain = mem_types[md->type].domain; prot_pte = __pgprot(mem_types[md->type].prot_pte); prot_l1 = mem_types[md->type].prot_l1 | PMD_DOMAIN(domain); @@ -409,7 +416,7 @@ static void __init create_mapping(struct map_desc *md) if (mem_types[md->type].prot_l1 == 0 && (virt & 0xfffff || (virt + off) & 0xfffff || (virt + length) & 0xfffff)) { - printk(KERN_WARNING "MM: map for 0x%08lx at 0x%08lx can not " + printk(KERN_WARNING "BUG: map for 0x%08lx at 0x%08lx can not " "be mapped using pages, ignoring.\n", md->physical, md->virtual); return; -- 2.53.0