aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-x86/pgalloc.h
diff options
context:
space:
mode:
authorJeremy Fitzhardinge <jeremy@goop.org>2008-03-17 19:37:06 -0400
committerIngo Molnar <mingo@elte.hu>2008-04-24 17:57:31 -0400
commit286cd49456ef980c4b9904064ef34c36017b8351 (patch)
tree1e9d13edeae30418eb18fef4158d28afcf7ead74 /include/asm-x86/pgalloc.h
parentc20311e165eb94f5ef12b15e452cc6ec24bd7813 (diff)
x86: demacro pgalloc paravirt stubs
Turn paravirt stubs into inline functions, so that the arguments are still typechecked. Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com> Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include/asm-x86/pgalloc.h')
-rw-r--r--include/asm-x86/pgalloc.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/include/asm-x86/pgalloc.h b/include/asm-x86/pgalloc.h
index 60e7f514ea01..91e4641f3f31 100644
--- a/include/asm-x86/pgalloc.h
+++ b/include/asm-x86/pgalloc.h
@@ -8,13 +8,14 @@
8#ifdef CONFIG_PARAVIRT 8#ifdef CONFIG_PARAVIRT
9#include <asm/paravirt.h> 9#include <asm/paravirt.h>
10#else 10#else
11#define paravirt_alloc_pte(mm, pfn) do { } while (0) 11static inline void paravirt_alloc_pte(struct mm_struct *mm, unsigned long pfn) {}
12#define paravirt_alloc_pmd(mm, pfn) do { } while (0) 12static inline void paravirt_alloc_pmd(struct mm_struct *mm, unsigned long pfn) {}
13#define paravirt_alloc_pmd_clone(pfn, clonepfn, start, count) do { } while (0) 13static inline void paravirt_alloc_pmd_clone(unsigned long pfn, unsigned long clonepfn,
14#define paravirt_alloc_pud(mm, pfn) do { } while (0) 14 unsigned long start, unsigned long count) {}
15#define paravirt_release_pte(pfn) do { } while (0) 15static inline void paravirt_alloc_pud(struct mm_struct *mm, unsigned long pfn) {}
16#define paravirt_release_pmd(pfn) do { } while (0) 16static inline void paravirt_release_pte(unsigned long pfn) {}
17#define paravirt_release_pud(pfn) do { } while (0) 17static inline void paravirt_release_pmd(unsigned long pfn) {}
18static inline void paravirt_release_pud(unsigned long pfn) {}
18#endif 19#endif
19 20
20/* 21/*