]> git.hungrycats.org Git - linux/commitdiff
[ARM] Ensure that MM initialisation warnings are reported as bugs.
authorRussell King <rmk@flint.arm.linux.org.uk>
Wed, 17 Sep 2003 14:51:46 +0000 (15:51 +0100)
committerRussell King <rmk@flint.arm.linux.org.uk>
Wed, 17 Sep 2003 14:51:46 +0000 (15:51 +0100)
arch/arm/mm/mm-armv.c

index fe4dacb950e719dc54fb037deecd90c3dcb5b74f..273b1b42c2b50c770293fa40913a6dbed333ac24 100644 (file)
@@ -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;