From: Konrad Rzeszutek Wilk Date: Thu, 30 Jun 2011 13:12:40 +0000 (-0400) Subject: xen/mmu: Fix for linker errors when CONFIG_SMP is not defined. X-Git-Tag: v3.0-rc6~12^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=32dd11942aeb47f91209a446d6b10063c5b69389;p=profile%2Fcommon%2Fkernel-common.git xen/mmu: Fix for linker errors when CONFIG_SMP is not defined. Simple enough - we use an extern defined symbol which is not defined when CONFIG_SMP is not defined. This fixes the linker dying. CC: stable@kernel.org Signed-off-by: Konrad Rzeszutek Wilk --- diff --git a/arch/x86/xen/mmu.c b/arch/x86/xen/mmu.c index 673e968..0ccccb6 100644 --- a/arch/x86/xen/mmu.c +++ b/arch/x86/xen/mmu.c @@ -1232,7 +1232,11 @@ static void xen_flush_tlb_others(const struct cpumask *cpus, { struct { struct mmuext_op op; +#ifdef CONFIG_SMP DECLARE_BITMAP(mask, num_processors); +#else + DECLARE_BITMAP(mask, NR_CPUS); +#endif } *args; struct multicall_space mcs;