mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] mm/highmem.c: Fix ‘pkmap_count’ undeclared
@ 2010-03-03 22:49 John Kacur
  0 siblings, 0 replies; only message in thread
From: John Kacur @ 2010-03-03 22:49 UTC (permalink / raw)
  To: Thomas Gleixner, rt-users
  Cc: Fernando Lopez-Lezcano, Xavier Miller, LKML, Ingo Molnar,
	Peter Zijlstra, Steven Rostedt, Clark Williams, Carsten Emde,
	John Kacur

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)

Signed-off-by: John Kacur <jkacur@redhat.com>
---
 mm/highmem.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/mm/highmem.c b/mm/highmem.c
index 1b534a8..887a487 100644
--- a/mm/highmem.c
+++ b/mm/highmem.c
@@ -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);
-- 
1.6.5.7


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-03-03 22:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-03 22:49 [PATCH] mm/highmem.c: Fix ‘pkmap_count’ undeclared John Kacur

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®