Skip to content

Commit

Permalink
xen/mmu: Fix for linker errors when CONFIG_SMP is not defined.
Browse files Browse the repository at this point in the history
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 <konrad.wilk@oracle.com>
  • Loading branch information
konradwilk committed Jun 30, 2011
1 parent acd049c commit 32dd119
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arch/x86/xen/mmu.c
Expand Up @@ -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;

Expand Down

0 comments on commit 32dd119

Please sign in to comment.