summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorJames Cowgill <James.Cowgill@imgtec.com>2014-11-13 11:08:06 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-12-06 15:57:13 -0800
commitea2d1816eb38fc994324b00eb2bc48df463cadcf (patch)
treeabe44424d05deb53d70deccea3e752375b0b938a /arch
parentd17bb5349a8c47681e4b8c13b18d5a474f1447af (diff)
MIPS: Loongson3: Fix __node_distances undefined error
commit 21255dad9dffa4407cab866f5561cb9568f7f7d8 upstream. export the __node_distances symbol in the loongson3 numa code to fix the build error: Building modules, stage 2. MODPOST 221 modules ERROR: "__node_distances" [drivers/block/nvme.ko] undefined! scripts/Makefile.modpost:90: recipe for target '__modpost' failed when building the kernel with: CONFIG_CPU_LOONGSON3=y CONFIG_NUMA=y CONFIG_BLK_DEV_NVME=m Signed-off-by: James Cowgill <James.Cowgill@imgtec.com> Reviewed-by: James Hogan <james.hogan@imgtec.com> Reviewed-by: Huacai Chen <chenhc@lemote.com> Cc: linux-mips@linux-mips.org Cc: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Patchwork: https://patchwork.linux-mips.org/patch/8444/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/mips/loongson/loongson-3/numa.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/mips/loongson/loongson-3/numa.c b/arch/mips/loongson/loongson-3/numa.c
index 37ed184398c6..42323bcc5d28 100644
--- a/arch/mips/loongson/loongson-3/numa.c
+++ b/arch/mips/loongson/loongson-3/numa.c
@@ -33,6 +33,7 @@
static struct node_data prealloc__node_data[MAX_NUMNODES];
unsigned char __node_distances[MAX_NUMNODES][MAX_NUMNODES];
+EXPORT_SYMBOL(__node_distances);
struct node_data *__node_data[MAX_NUMNODES];
EXPORT_SYMBOL(__node_data);