mirror of
https://github.com/torvalds/linux.git
synced 2024-11-11 22:51:42 +00:00
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>
This commit is contained in:
parent
c20311e165
commit
286cd49456
@ -8,13 +8,14 @@
|
||||
#ifdef CONFIG_PARAVIRT
|
||||
#include <asm/paravirt.h>
|
||||
#else
|
||||
#define paravirt_alloc_pte(mm, pfn) do { } while (0)
|
||||
#define paravirt_alloc_pmd(mm, pfn) do { } while (0)
|
||||
#define paravirt_alloc_pmd_clone(pfn, clonepfn, start, count) do { } while (0)
|
||||
#define paravirt_alloc_pud(mm, pfn) do { } while (0)
|
||||
#define paravirt_release_pte(pfn) do { } while (0)
|
||||
#define paravirt_release_pmd(pfn) do { } while (0)
|
||||
#define paravirt_release_pud(pfn) do { } while (0)
|
||||
static inline void paravirt_alloc_pte(struct mm_struct *mm, unsigned long pfn) {}
|
||||
static inline void paravirt_alloc_pmd(struct mm_struct *mm, unsigned long pfn) {}
|
||||
static inline void paravirt_alloc_pmd_clone(unsigned long pfn, unsigned long clonepfn,
|
||||
unsigned long start, unsigned long count) {}
|
||||
static inline void paravirt_alloc_pud(struct mm_struct *mm, unsigned long pfn) {}
|
||||
static inline void paravirt_release_pte(unsigned long pfn) {}
|
||||
static inline void paravirt_release_pmd(unsigned long pfn) {}
|
||||
static inline void paravirt_release_pud(unsigned long pfn) {}
|
||||
#endif
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user