Linux Kernel Mailing List | 2 Jul 2011 02:59

xen/mmu: Fix for linker errors when CONFIG_SMP is not defined.

Gitweb:     http://git.kernel.org/linus/32dd11942aeb47f91209a446d6b10063c5b69389
Commit:     32dd11942aeb47f91209a446d6b10063c5b69389
Parent:     acd049c6e99d2ad1195666195230f6881d1c1588
Author:     Konrad Rzeszutek Wilk <konrad.wilk <at> oracle.com>
AuthorDate: Thu Jun 30 09:12:40 2011 -0400
Committer:  Konrad Rzeszutek Wilk <konrad.wilk <at> oracle.com>
CommitDate: Thu Jun 30 09:21:10 2011 -0400

    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 <at> kernel.org
    Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk <at> oracle.com>
---
 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 673e968..0ccccb6 100644
--- a/arch/x86/xen/mmu.c
+++ b/arch/x86/xen/mmu.c
 <at>  <at>  -1232,7 +1232,11  <at>  <at>  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;

--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Gmane