lkml.org 
[lkml]   [2008]   [Mar]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Subject[PATCH 15 of 31] x86: demacro pgalloc paravirt stubs
    Date
    From
    Turn paravirt stubs into inline functions, so that the arguments are
    still typechecked.

    Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>

    ---
    include/asm-x86/pgalloc.h | 15 ++++++++-------
    1 file changed, 8 insertions(+), 7 deletions(-)

    diff --git a/include/asm-x86/pgalloc.h b/include/asm-x86/pgalloc.h
    --- a/include/asm-x86/pgalloc.h
    +++ b/include/asm-x86/pgalloc.h
    @@ -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

    /*



    \
     
     \ /
      Last update: 2008-03-18 06:33    [W:0.044 / U:88.676 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site