From: Shailendra Singh Date: Wed, 1 Feb 2017 22:52:42 +0000 (-0800) Subject: powerpc: Drop GPL from of_node_to_nid() export to match other arches X-Git-Tag: v4.11-rc1~36^2~56 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=be9ba9ff93cc3e44dc46da9ed25655780069411a;p=uclinux-h8%2Flinux.git powerpc: Drop GPL from of_node_to_nid() export to match other arches The generic implementation of of_node_to_nid() is EXPORT_SYMBOL, added in commit 298535c00a2c ("of, numa: Add NUMA of binding implementation."). The powerpc implementation added in commit 953039c8df7b ("[PATCH] powerpc: Allow devices to register with numa topology") is EXPORT_SYMBOL_GPL. This creates an inconsistency for of_node_to_nid() callers across architectures. Update the powerpc implementation to be exported consistently with the generic implementation. Signed-off-by: Shailendra Singh Reviewed-by: Andy Ritger Signed-off-by: Michael Ellerman --- diff --git a/arch/powerpc/mm/numa.c b/arch/powerpc/mm/numa.c index 16267ff8c86c..9befaee237d6 100644 --- a/arch/powerpc/mm/numa.c +++ b/arch/powerpc/mm/numa.c @@ -290,7 +290,7 @@ int of_node_to_nid(struct device_node *device) return nid; } -EXPORT_SYMBOL_GPL(of_node_to_nid); +EXPORT_SYMBOL(of_node_to_nid); static int __init find_min_common_depth(void) {