diff options
author | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2011-06-30 09:12:40 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-07-08 23:15:04 -0700 |
commit | 26ae56d8c1c5f63fa96038035151f0ce561035c7 (patch) | |
tree | 83a16032d7947430609051a9f3569028330b1142 /arch | |
parent | 5d2ab11259e3180fd7030102116309c0ded41636 (diff) |
xen/mmu: Fix for linker errors when CONFIG_SMP is not defined.
commit 32dd11942aeb47f91209a446d6b10063c5b69389 upstream.
Simple enough - we use an extern defined symbol which is not
defined when CONFIG_SMP is not defined. This fixes the linker
dying.
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/xen/mmu.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/x86/xen/mmu.c b/arch/x86/xen/mmu.c index 7df2cb67e844..0d668d1bbbc4 100644 --- a/arch/x86/xen/mmu.c +++ b/arch/x86/xen/mmu.c @@ -1354,7 +1354,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; |