login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
September
»
8
Re: [PATCH tip] x86: unsigned long pte_pfn
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Jeremy Fitzhardinge <jeremy@...>
To: Hugh Dickins <hugh@...>
Cc: <x86@...>, <linux-kernel@...>
Subject:
Re: [PATCH tip] x86: unsigned long pte_pfn
Date: Monday, September 8, 2008 - 4:23 pm
Hugh Dickins wrote:
quoted text
> pte_pfn() has always been of type unsigned long, even on 32-bit PAE; > but in the current tip/next/mm tree it's unsigned long long on 64-bit, > which gives an irritating warning if you try to printk a pfn with the > usual %lx. Copy the inline function used by 32-bit's pgtable-3level.h. >
That looks OK, but rather than copying it, why not move the definition into pgtable.h? Isn't it identical for all pagetable modes? J
quoted text
> Signed-off-by: Hugh Dickins <hugh@veritas.com> > --- > > include/asm-x86/pgtable_64.h | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) > > --- 2.6.27-rc5-mm1/include/asm-x86/pgtable_64.h 2008-09-05 10:08:04.000000000 +0100 > +++ linux/include/asm-x86/pgtable_64.h 2008-09-08 19:12:39.000000000 +0100 > @@ -182,7 +182,11 @@ static inline int pmd_bad(pmd_t pmd) > > #define pages_to_mb(x) ((x) >> (20 - PAGE_SHIFT)) /* FIXME: is this right? */ > #define pte_page(x) pfn_to_page(pte_pfn((x))) > -#define pte_pfn(x) ((pte_val((x)) & __PHYSICAL_MASK) >> PAGE_SHIFT) > + > +static inline unsigned long pte_pfn(pte_t pte) > +{ > + return (pte_val(pte) & PTE_PFN_MASK) >> PAGE_SHIFT; > +} > > /* > * Macro to mark a page protection value as "uncacheable". >
--
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH tip] x86: unsigned long pte_pfn
, Hugh Dickins
, (Mon Sep 8, 4:04 pm)
Re: [PATCH tip] x86: unsigned long pte_pfn
, Jeremy Fitzhardinge
, (Mon Sep 8, 4:23 pm)
Re: [PATCH tip] x86: unsigned long pte_pfn
, Hugh Dickins
, (Tue Sep 9, 11:42 am)
Re: [PATCH tip] x86: unsigned long pte_pfn
, Jeremy Fitzhardinge
, (Tue Sep 9, 12:52 pm)
Re: [PATCH tip] x86: unsigned long pte_pfn
, Ingo Molnar
, (Wed Sep 10, 4:00 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
monstr
[PATCH 03/56] microblaze_v2: Cpuinfo handling
Andrew Morton
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Greg KH
[GIT PATCH] driver core patches against 2.6.24
Arjan van de Ven
Re: [GIT *] Allow request_firmware() to be satisfied from in-kernel, use it in mor...
git
:
linux-netdev
:
Willy Tarreau
Re: [PATCH] tcp: splice as many packets as possible at once
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
Linus Torvalds
Re: [GIT]: Networking
Alexey Dobriyan
[PATCH 01/53] xfrm: initialise xfrm_policy_gc_work statically
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
7 users
and
944 guests
online.
Online users
Jeremy
zeekec
strcmp
frontyardlands
osoleanijd
asiabridespmssk
autoinsurancldk
Syndicate