[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH v2] x86/mm: Comment the definitions of _mfn(), _gfn() &c


  • To: xen-devel@xxxxxxxxxxxxx
  • From: Tim Deegan <tim@xxxxxxx>
  • Date: Thu, 22 Nov 2012 17:44:16 +0000
  • Delivery-date: Thu, 22 Nov 2012 17:44:39 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xen.org>

# HG changeset patch
# User Tim Deegan <tim@xxxxxxx>
# 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@xxxxxxx>

----
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"
 

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.