Skip to contentSkip to conversation

sparc64: Export __node_distance.

PATCH New David Miller 1 participant 1 message Oct 26, 2018 SPARC + UltraSPARC (sparc/sparc64)

lore
Share & tools
lore

David Miller

author maintainer
#0 lore raw

PATCH 1/1 sparc64: Export __node_distance.

Some drivers reference it via node_distance(), for example the NVME host driver core.

ERROR: "__node_distance" [drivers/nvme/host/nvme-core.ko] undefined! make[1]: *** [scripts/Makefile.modpost:92: __modpost] Error 1

---
 arch/sparc/mm/init_64.c | 1 +
 1 file changed, 1 insertion(+)
arch/sparc/mm/init_64.c +1 -0
index f396048..39822f6 100644
@@ -1383,6 +1383,7 @@ int __node_distance(int from, int to)
 	}
 	return numa_latency[from][to];
 }
+EXPORT_SYMBOL(__node_distance);
 
 static int __init find_best_numa_node_for_mlgroup(struct mdesc_mlgroup *grp)
 {
Signature · 1 line
2.1.2.532.g19b5d50