lkml.org 
[lkml]   [2010]   [May]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 10/22] lmb: Prepare to include linux/lmb.h in core file
    Date
    Need to add protection in linux/lmb.h, to prepare to include it in
    mm/page_alloc.c and mm/bootmem.c etc.

    Signed-off-by: Yinghai Lu <yinghai@kernel.org>
    ---
    include/linux/lmb.h | 3 +++
    1 files changed, 3 insertions(+), 0 deletions(-)

    diff --git a/include/linux/lmb.h b/include/linux/lmb.h
    index 85918a4..58db7e9 100644
    --- a/include/linux/lmb.h
    +++ b/include/linux/lmb.h
    @@ -2,6 +2,7 @@
    #define _LINUX_LMB_H
    #ifdef __KERNEL__

    +#ifdef CONFIG_HAVE_LMB
    /*
    * Logical memory blocks.
    *
    @@ -102,6 +103,8 @@ u64 lmb_hole_size(u64 start, u64 end);

    #include <asm/lmb.h>

    +#endif /* CONFIG_HAVE_LMB */
    +
    #endif /* __KERNEL__ */

    #endif /* _LINUX_LMB_H */
    --
    1.6.4.2


    \
     
     \ /
      Last update: 2010-05-08 17:23    [W:4.153 / U:0.544 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site