projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
acd049c
)
xen/mmu: Fix for linker errors when CONFIG_SMP is not defined.
author
Konrad Rzeszutek Wilk
<konrad.wilk@oracle.com>
Thu, 30 Jun 2011 13:12:40 +0000
(09:12 -0400)
committer
Konrad Rzeszutek Wilk
<konrad.wilk@oracle.com>
Thu, 30 Jun 2011 13:21:10 +0000
(09:21 -0400)
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>
arch/x86/xen/mmu.c
patch
|
blob
|
history
diff --git
a/arch/x86/xen/mmu.c
b/arch/x86/xen/mmu.c
index 673e968df3cfd6c67a1b8a9dc3885fcaad15249f..0ccccb67a99300d3cd6277cb427382bdbe3ce3a5 100644
(file)
--- 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;