From: Tim Deegan Subject: [PATCH] x86/mm: Comment the definitions of _mfn(), _gfn() &c Date: Thu, 22 Nov 2012 17:10:21 +0000 Message-ID: <3ea68d29fd57988d7788.1353604221@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 1353604092 0 # Node ID 3ea68d29fd57988d7788450f25ad0cd84cbd2fb4 # 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 diff -r 7b4449bdb980 -r 3ea68d29fd57 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:08:12 2012 +0000 @@ -36,6 +36,7 @@ /* Type of the guest's frame numbers */ TYPE_SAFE(unsigned long,gfn) #define PRI_gfn "05lx" +/* Grep fodder: gfn_t, _gfn() and gfn_x() are defined here */ #define VALID_GFN(m) (m != INVALID_GFN) diff -r 7b4449bdb980 -r 3ea68d29fd57 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:08:12 2012 +0000 @@ -455,6 +455,7 @@ static inline _type _name##_x(_name##_t #endif TYPE_SAFE(unsigned long,mfn); +/* Grep fodder: mfn_t, _mfn() and mfn_x() are defined here */ /* Macro for printk formats: use as printk("%"PRI_mfn"\n", mfn_x(foo)); */ #define PRI_mfn "05lx"