[PATCH] powerpc: Fix inconsistent of_node_to_nid EXPORT_SYMBOL handling

Shailendra Singh shailendras at nvidia.com
Thu Feb 2 09:52:42 AEDT 2017

The generic implementation of of_node_to_nid is EXPORT_SYMBOL.

The powerpc implementation added by following commit is EXPORT_SYMBOL_GPL.
commit 953039c8df7b ("[PATCH] powerpc: Allow devices to register with numa

This creates an inconsistency for of_node_to_nid callers across

Update the powerpc implementation to be exported consistently with the
generic implementation.

Signed-off-by: Shailendra Singh <shailendras at nvidia.com>

Reviewed-by: Andy Ritger <aritger at nvidia.com>
 arch/powerpc/mm/numa.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/powerpc/mm/numa.c b/arch/powerpc/mm/numa.c
index b1099cb2f393..8aa4ca3c84c9 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;
 static int __init find_min_common_depth(void)

More information about the Linuxppc-dev mailing list