[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen master] mm: provide more grep fodder
commit b6e570cfb2694cba6490b9e4e297f506d6e7531f Author: Wei Liu <wei.liu2@xxxxxxxxxx> AuthorDate: Mon Apr 3 12:22:39 2017 +0100 Commit: Wei Liu <wei.liu2@xxxxxxxxxx> CommitDate: Tue Jun 13 18:15:22 2017 +0100 mm: provide more grep fodder Define several _* and *_x macros for better grep-ability. This also helps indexing tool like GNU Global. No functional change. Signed-off-by: Wei Liu <wei.liu2@xxxxxxxxxx> Acked-by: George Dunlap <george.dunlap@xxxxxxxxxx> Acked-by: Jan Beulich <jbeulich@xxxxxxxx> --- xen/include/xen/mm.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/xen/include/xen/mm.h b/xen/include/xen/mm.h index ee50d4c..c919823 100644 --- a/xen/include/xen/mm.h +++ b/xen/include/xen/mm.h @@ -60,7 +60,11 @@ TYPE_SAFE(unsigned long, mfn); #ifndef mfn_t #define mfn_t /* Grep fodder: mfn_t, _mfn() and mfn_x() are defined above */ +#define _mfn +#define mfn_x #undef mfn_t +#undef _mfn +#undef mfn_x #endif static inline mfn_t mfn_add(mfn_t mfn, unsigned long i) @@ -89,7 +93,11 @@ TYPE_SAFE(unsigned long, gfn); #ifndef gfn_t #define gfn_t /* Grep fodder: gfn_t, _gfn() and gfn_x() are defined above */ +#define _gfn +#define gfn_x #undef gfn_t +#undef _gfn +#undef gfn_x #endif static inline gfn_t gfn_add(gfn_t gfn, unsigned long i) @@ -118,7 +126,11 @@ TYPE_SAFE(unsigned long, pfn); #ifndef pfn_t #define pfn_t /* Grep fodder: pfn_t, _pfn() and pfn_x() are defined above */ +#define _pfn +#define pfn_x #undef pfn_t +#undef _pfn +#undef pfn_x #endif struct page_info; -- generated by git-patchbot for /home/xen/git/xen.git#master _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx https://lists.xenproject.org/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |