Skip to contentSkip to conversation

Typo at ia64 ptep_cmpxchg_rel()

PATCH Applied Glauber de Oliveira Costa 2 participants 2 messages Dec 12, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Typo at ia64 ptep_cmpxchg_rel()

Code defined outside CONFIG_SMP has a typo.

Follows a fix.

Signature · 3 lines
Glauber de Oliveira Costa
Red Hat Inc.
"Free as in Freedom"

# HG changeset patch
# User [email protected]
# Date 1165952833 18000
# Node ID 9c41aea48e4181768227abf1136b344403855b92 # Parent 37141c3a3d39956ad5faf2d4e2a91276eaca557b [IA64] Fix typo : npte not defined

new_pte is what we want here.

xen/include/asm-ia64/linux-xen/asm/pgtable.h +1 -1
diff -r 37141c3a3d39 -r 9c41aea48e41 xen/include/asm-ia64/linux-xen/asm/pgtable.h
@@ -502,7 +502,7 @@ ptep_cmpxchg_rel(struct mm_struct *mm, u
 #else
 	pte_t pte = *ptep;
 	if (pte_val(pte) == pte_val(old_pte)) {
-		set_pte(ptep, npte);
+		set_pte(ptep, new_pte);
 	}
 	return pte;
 #endif

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#1 lore raw
Quoted 3 lines · Glauber de Oliveira Costa

Code defined outside CONFIG_SMP has a typo.

Follows a fix.

Applied to xen-ia64-unstable.hg. Thanks!

Alex

Signature · 1 line
Alex Williamson                             HP Open Source & Linux Org.