[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20090715162556.GA4767@linux.vnet.ibm.com>
Date: Wed, 15 Jul 2009 21:55:56 +0530
From: Kamalesh Babulal <kamalesh@...ux.vnet.ibm.com>
To: Tejun Heo <htejun@...il.com>
Cc: Stephen Rothwell <sfr@...b.auug.org.au>,
linux-next@...r.kernel.org, lkml <linux-kernel@...r.kernel.org>,
Randy Dunlap <randy.dunlap@...cle.com>
Subject: Re: [PATCH] percpu: add dummy pcpu_lpage_remapped() for !CONFIG_SMP
* Tejun Heo <htejun@...il.com> [2009-07-15 23:39:09]:
> !CONFIG_SMP was missing pcpu_lpage_remapped() definition causing build
> failure. Add dummy implementation. This was discovered by linux-next
> testing.
>
Thanks, the patch fixes the build failure.
Tested-by: Kamalesh Babulal <kamalesh@...ux.vnet.ibm.com>
> Signed-off-by: Tejun Heo <tj@...nel.org>
> Cc: Randy Dunlap <randy.dunlap@...cle.com>
> Cc: Kamalesh Babulal <kamalesh@...ux.vnet.ibm.com>
> Cc: Stephen Rothwell <sfr@...b.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
Kamalesh
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists