Skip to contentSkip to conversation

x86/mm: Comment the definitions of _mfn(), _gfn() &c

PATCH New Tim Deegan 1 participant 1 message Nov 22, 2012

lore
Share & tools
lore

Tim Deegan

author
#0 lore raw

PATCH v2 1/1 x86/mm: Comment the definitions of _mfn(), _gfn() &c

# HG changeset patch
# User Tim Deegan <[email protected]>
# 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.

----
v2: Use a format that will show up in ctags &c.

xen/include/asm-x86/guest_pt.h +5 -0
diff -r 7b4449bdb980 -r 9b09b379df32 xen/include/asm-x86/guest_pt.h
@@ -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
xen/include/asm-x86/mm.h +5 -0
diff -r 7b4449bdb980 -r 9b09b379df32 xen/include/asm-x86/mm.h
@@ -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"