bf0b23e
From e94355905793eef85567e723feb43b72c98e8a83 Mon Sep 17 00:00:00 2001
bf0b23e
From: "Justin M. Forbes" <jforbes@fedoraproject.org>
bf0b23e
Date: Wed, 31 Oct 2018 11:56:22 -0500
bf0b23e
Subject: [PATCH] s390/mm: Fix ERROR: "__node_distance" undefined!
bf0b23e
bf0b23e
Fixes:
bf0b23e
ERROR: "__node_distance" [drivers/nvme/host/nvme-core.ko] undefined!
bf0b23e
make[1]: *** [scripts/Makefile.modpost:92: __modpost] Error 1
bf0b23e
make: *** [Makefile:1275: modules] Error 2
bf0b23e
+ exit 1
bf0b23e
bf0b23e
Signed-off-by: Justin M. Forbes <jforbes@fedoraproject.org>
bf0b23e
---
bf0b23e
 arch/s390/numa/numa.c | 2 ++
bf0b23e
 1 file changed, 2 insertions(+)
bf0b23e
bf0b23e
diff --git a/arch/s390/numa/numa.c b/arch/s390/numa/numa.c
bf0b23e
index 5bd374491f94..bef306e45da8 100644
bf0b23e
--- a/arch/s390/numa/numa.c
bf0b23e
+++ b/arch/s390/numa/numa.c
bf0b23e
@@ -55,6 +55,8 @@ int __node_distance(int a, int b)
bf0b23e
 	return mode->distance ? mode->distance(a, b) : 0;
bf0b23e
 }
bf0b23e
bf0b23e
+EXPORT_SYMBOL(__node_distance);
bf0b23e
+
bf0b23e
 int numa_debug_enabled;
bf0b23e
bf0b23e
 /*
bf0b23e
-- 
bf0b23e
2.19.1
bf0b23e