From: "Jan Beulich" Subject: [PATCH] linux/x86-64: again pte_val() -> __pte_val() Date: Tue, 14 Oct 2008 14:24:56 +0100 Message-ID: <48F4B9C8.76E4.0078.0@novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org ... 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. Signed-off-by: Jan Beulich --- head-2008-10-13.orig/arch/x86_64/mm/init-xen.c +++ head-2008-10-13/arch/x86_64/mm/init-xen.c @@ -274,7 +274,7 @@ new_pte =3D __pte(0); =20 pte =3D pte_offset_kernel(pmd, vaddr); - if (!pte_none(*pte) && pte_val(new_pte) && + if (!pte_none(*pte) && __pte_val(new_pte) && __pte_val(*pte) !=3D (__pte_val(new_pte) & __supported_pte_mask= )) pte_ERROR(*pte); set_pte(pte, new_pte); @@ -325,7 +325,7 @@ new_pte =3D pfn_pte_ma(phys >> PAGE_SHIFT, prot); =20 pte =3D 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) ||