Skip to contentSkip to conversation

s390/mm: Fix ERROR: "__node_distance" undefined!

PATCH Applied Justin M. Forbes 2 participants 2 messages Oct 31, 2018 – Nov 1, 2018 s390

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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

---
 arch/s390/numa/numa.c | 2 ++
 1 file changed, 2 insertions(+)
arch/s390/numa/numa.c +2 -0
index 5bd374491f94..bef306e45da8 100644
@@ -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;
 
 /*
Signature · 1 line
2.19.1
#1 lore raw
Quoted 10 lines · Justin M. Forbes

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

---
 arch/s390/numa/numa.c | 2 ++
 1 file changed, 2 insertions(+)

Applied, thanks.