Tim Deegan
2012-Nov-22  17:44 UTC
[PATCH v2] x86/mm: Comment the definitions of _mfn(), _gfn() &c
# HG changeset patch
# User Tim Deegan <tim@xen.org>
# 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 <tim@xen.org>
----
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"