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

[Xen-changelog] [xen-unstable] x86/mm: Comment the definitions of _mfn(), _gfn() &c.


  • To: xen-changelog@xxxxxxxxxxxxxxxxxxx
  • From: Xen patchbot-unstable <patchbot@xxxxxxx>
  • Date: Tue, 04 Dec 2012 00:22:12 +0000
  • Delivery-date: Tue, 04 Dec 2012 00:22:18 +0000
  • List-id: "Change log for Mercurial \(receive only\)" <xen-changelog.lists.xen.org>

# HG changeset patch
# User Tim Deegan <tim@xxxxxxx>
# Date 1354186193 0
# Node ID 9c6c13bf380355d6814d60f8b2da308cee07a15a
# Parent  5d7e3c2742e8378bdf312b3d9861d6c141e80fff
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>
Committed-by: Tim Deegan <tim@xxxxxxx>
---


diff -r 5d7e3c2742e8 -r 9c6c13bf3803 xen/include/asm-x86/guest_pt.h
--- a/xen/include/asm-x86/guest_pt.h    Thu Nov 29 09:14:55 2012 +0100
+++ b/xen/include/asm-x86/guest_pt.h    Thu Nov 29 10:49:53 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 5d7e3c2742e8 -r 9c6c13bf3803 xen/include/asm-x86/mm.h
--- a/xen/include/asm-x86/mm.h  Thu Nov 29 09:14:55 2012 +0100
+++ b/xen/include/asm-x86/mm.h  Thu Nov 29 10:49:53 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-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

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