Skip to contentSkip to conversation

linux/x86-64: again pte_val() -> __pte_val()

PATCH New Jan Beulich 1 participant 1 message Oct 14, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 linux/x86-64: again pte_val() -> __pte_val()

... as the generated code is so much easier to read (performance doesn't really matter here).

As usual, written and tested on 2.6.27 and made apply to the 2.6.18 tree without further testing.

arch/x86_64/mm/init-xen.c +2 -2
@@ -274,7 +274,7 @@
 		new_pte = __pte(0);
 
 	pte = pte_offset_kernel(pmd, vaddr);
-	if (!pte_none(*pte) && pte_val(new_pte) &&
+	if (!pte_none(*pte) && __pte_val(new_pte) &&
 	    __pte_val(*pte) != (__pte_val(new_pte) & __supported_pte_mask))
 		pte_ERROR(*pte);
 	set_pte(pte, new_pte);
@@ -325,7 +325,7 @@
 	new_pte = pfn_pte_ma(phys >> PAGE_SHIFT, prot);
 
 	pte = pte_offset_kernel(pmd, vaddr);
-	if (!pte_none(*pte) && pte_val(new_pte) &&
+	if (!pte_none(*pte) && __pte_val(new_pte) &&
 #ifdef CONFIG_ACPI
 	    /* __acpi_map_table() fails to properly call clear_fixmap() */
 	    (vaddr < __fix_to_virt(FIX_ACPI_END) ||