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