Skip to contentSkip to conversation

mm/highmem.c: Fix ‘pkmap_count’ undeclared

PATCH New John Kacur 1 participant 1 message Mar 3, 2010

Subsystems (2)
lore
Share & tools
lore

John Kacur

author
#0 lore raw

PATCH 1/1 mm/highmem.c: Fix ‘pkmap_count’ undeclared

This fixes the following problem that occurs when CONFIG_DEBUG_VM=y

mm/highmem.c:534: error: ‘pkmap_count’ undeclared (first use in this function)

---
 mm/highmem.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
mm/highmem.c +1 -1
index 1b534a8..887a487 100644
@@ -531,7 +531,7 @@ static int __set_page_address(struct page *page, void *virtual, int pos)
 	struct page_address_map *pam;
 
 	VM_BUG_ON(!PageHighMem(page));
-	VM_BUG_ON(atomic_read(&pkmap_count[pos]) != 0);
+	VM_BUG_ON(atomic_read(&pkmap[pos].count) != 0);
 	VM_BUG_ON(pos < 0 || pos >= LAST_PKMAP);
 
 	pas = page_slot(page);
Signature · 6 lines
1.6.5.7

--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html