lkml.org 
[lkml]   [2009]   [Jul]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCH] percpu: add dummy pcpu_lpage_remapped() for !CONFIG_SMP
    !CONFIG_SMP was missing pcpu_lpage_remapped() definition causing build
    failure. Add dummy implementation. This was discovered by linux-next
    testing.

    Signed-off-by: Tejun Heo <tj@kernel.org>
    Cc: Randy Dunlap <randy.dunlap@oracle.com>
    Cc: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com>
    Cc: Stephen Rothwell <sfr@canb.auug.org.au>
    ---
    Yeap, it was missing dummy definition on !CONFIG_SMP. This patch
    fixes it. Committed to percpu#for-next. Thanks.

    include/linux/percpu.h | 5 +++++
    1 files changed, 5 insertions(+), 0 deletions(-)

    diff --git a/include/linux/percpu.h b/include/linux/percpu.h
    index 8ce91af..e134c82 100644
    --- a/include/linux/percpu.h
    +++ b/include/linux/percpu.h
    @@ -184,6 +184,11 @@ static inline void free_percpu(void *p)

    static inline void __init setup_per_cpu_areas(void) { }

    +static inline void *pcpu_lpage_remapped(void *kaddr)
    +{
    + return NULL;
    +}
    +
    #endif /* CONFIG_SMP */

    #define alloc_percpu(type) (type *)__alloc_percpu(sizeof(type), \
    --
    1.6.0.2


    \
     
     \ /
      Last update: 2009-07-15 16:41    [W:0.030 / U:1.024 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site