ARM: Add kmap_atomic type debugging
authorRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 11 Oct 2009 15:29:48 +0000 (16:29 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 11 Oct 2009 15:29:48 +0000 (16:29 +0100)
Seemingly this support was missed when highmem was added, so
DEBUG_HIGHMEM wouldn't have checked the kmap_atomic type.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mm/highmem.c

index 73cae57fa707db6ce286e3945420c88601dd8a67..30f82fb5918c9e2a8b3cce49849ff4fd7d97c2dc 100644 (file)
@@ -46,6 +46,8 @@ void *kmap_atomic(struct page *page, enum km_type type)
        if (!PageHighMem(page))
                return page_address(page);
 
+       debug_kmap_atomic(type);
+
        kmap = kmap_high_get(page);
        if (kmap)
                return kmap;