[PATCH 3.17 005/122] MIPS: Loongson3: Fix __node_distances undefined error

From: Greg Kroah-Hartman
Date: Fri Dec 05 2014 - 18:45:18 EST

3.17-stable review patch. If anyone has any objections, please let me know.


From: James Cowgill <James.Cowgill@xxxxxxxxxx>

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:

Signed-off-by: James Cowgill <James.Cowgill@xxxxxxxxxx>
Reviewed-by: James Hogan <james.hogan@xxxxxxxxxx>
Reviewed-by: Huacai Chen <chenhc@xxxxxxxxxx>
Cc: linux-mips@xxxxxxxxxxxxxx
Cc: Wei Yongjun <yongjun_wei@xxxxxxxxxxxxxxxxx>
Patchwork: https://patchwork.linux-mips.org/patch/8444/
Signed-off-by: Ralf Baechle <ralf@xxxxxxxxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>

arch/mips/loongson/loongson-3/numa.c | 1 +
1 file changed, 1 insertion(+)

--- 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];
struct node_data *__node_data[MAX_NUMNODES];

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/