From: Tim Deegan Subject: [PATCH v2] x86/mm: Comment the definitions of _mfn(), _gfn() &c Date: Thu, 22 Nov 2012 17:44:16 +0000 Message-ID: <9b09b379df32cb282aac.1353606256@whitby.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org # HG changeset patch # User Tim Deegan # Date 1353606047 0 # Node ID 9b09b379df32cb282aac8c72a553e0862b71502e # Parent 7b4449bdb980caee8efc498d5ea48f772331df2f x86/mm: Comment the definitions of _mfn(), _gfn() &c. It's not very easy to find them if you don't know to look for the TYPE_SAFE() macro. Signed-off-by: Tim Deegan ---- v2: Use a format that will show up in ctags &c. diff -r 7b4449bdb980 -r 9b09b379df32 xen/include/asm-x86/guest_pt.h --- a/xen/include/asm-x86/guest_pt.h Thu Nov 22 10:47:58 2012 +0100 +++ b/xen/include/asm-x86/guest_pt.h Thu Nov 22 17:40:47 2012 +0000 @@ -37,6 +37,11 @@ TYPE_SAFE(unsigned long,gfn) #define PRI_gfn "05lx" +#ifndef gfn_t +#define gfn_t /* Grep fodder: gfn_t, _gfn() and gfn_x() are defined above */ +#undef gfn_t +#endif + #define VALID_GFN(m) (m != INVALID_GFN) static inline int diff -r 7b4449bdb980 -r 9b09b379df32 xen/include/asm-x86/mm.h --- a/xen/include/asm-x86/mm.h Thu Nov 22 10:47:58 2012 +0100 +++ b/xen/include/asm-x86/mm.h Thu Nov 22 17:40:47 2012 +0000 @@ -456,6 +456,11 @@ static inline _type _name##_x(_name##_t TYPE_SAFE(unsigned long,mfn); +#ifndef mfn_t +#define mfn_t /* Grep fodder: mfn_t, _mfn() and mfn_x() are defined above */ +#undef mfn_t +#endif + /* Macro for printk formats: use as printk("%"PRI_mfn"\n", mfn_x(foo)); */ #define PRI_mfn "05lx"