Skip to contentSkip to conversation

Patch for include/asm-ppc/highmem.h

PATCH Mark A. Greer 1 participant 1 message Jun 20, 2003

lore
Share & tools
lore
#0 lore raw

This patch changes the mask value to what I believe it was intended to be based on the bk comments for that file. If this is not the proper fix, we need to figure it out b/c it doesn't build when CONFIG_HIGHMEM is on (PAGE_ADDRESS is not defined).

Mark

===== include/asm-ppc/highmem.h 1.18 vs edited =====

include/asm-ppc/highmem.h +1 -1
@@ -110,7 +110,7 @@
 static inline void kunmap_atomic(void *kvaddr, enum km_type type)
 {
 #if HIGHMEM_DEBUG
-	unsigned long vaddr = (unsigned long) kvaddr & PAGE_ADDRESS;
+	unsigned long vaddr = (unsigned long) kvaddr & PAGE_MASK;
 	unsigned int idx = type + KM_TYPE_NR*smp_processor_id();
 
 	if (vaddr < KMAP_FIX_BEGIN) // FIXME